Parts of the code use int for passing around object sizes. Some example:
* Allocation methods in CollectedHeap
* Klass::oop_oop_iterate() returns the size of an object as an int
* typeArrayKlass::object_size() returns an int
Once all of the code uses size_t instead of int we should increase the maximum array size to be max_jint on 64 bit (without deducting the object header size). This means updating arrayOopDesc::max_array_length().
* Allocation methods in CollectedHeap
* Klass::oop_oop_iterate() returns the size of an object as an int
* typeArrayKlass::object_size() returns an int
Once all of the code uses size_t instead of int we should increase the maximum array size to be max_jint on 64 bit (without deducting the object header size). This means updating arrayOopDesc::max_array_length().
- duplicates
-
JDK-4718400 Many quantities are held as signed that should be unsigned
- Resolved