Request for reviews (XS): 6892265: System.arraycopy unable to reference elements beyond Integer.MAX_VALUE bytes (original) (raw)

Vladimir Kozlov Vladimir.Kozlov at Sun.COM
Fri Oct 16 11:17:21 PDT 2009


http://cr.openjdk.java.net/~kvn/6892265/webrev.00

Fixed 6892265: System.arraycopy unable to reference elements beyond Integer.MAX_VALUE bytes

Problem: Runtime method typeArrayKlass::copy_array() uses int type for pointers calculation.

Solution: Use size_t type in typeArrayKlass::copy_array(). I verified that compiled by C2 code which uses arraycopy stubs works fine. I did not add a regression test since it needs 4Gb java heap and not all our test machines have such memory.

Reviewed by:

Fix verified (y/n): y, bug's test

Other testing: JPRT



More information about the hotspot-compiler-dev mailing list