Mercurial > hg > openjdk > jdk6 > hotspot
changeset 4036:8e3cf0b7483a
OPENJDK6-15: Windows lacks SIZE_MAX
Reviewed-by: andrew
Contributed-by: Alex Kasko <alex.kasko.lists@gmail.com>
author | andrew |
---|---|
date | Wed, 18 Sep 2013 14:36:36 +0100 |
parents | c827c62f66e4 |
children | 9174be9920cd |
files | src/share/vm/oops/arrayOop.hpp |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/oops/arrayOop.hpp Thu Sep 12 00:35:27 2013 +0100 +++ b/src/share/vm/oops/arrayOop.hpp Wed Sep 18 14:36:36 2013 +0100 @@ -28,6 +28,11 @@ #include "memory/universe.inline.hpp" #include "oops/oop.hpp" +/* http://stackoverflow.com/questions/3472311/what-is-a-portable-method-to-find-the-maximum-value-of-size-t */ +#ifndef SIZE_MAX +#define SIZE_MAX ((size_t)-1) +#endif /* SIZE_MAX */ + // arrayOopDesc is the abstract baseclass for all arrays. It doesn't // declare pure virtual to enforce this because that would allocate a vtbl // in each instance, which we don't want.