RFR(XS): 8043896: Error reporting for insufficient shared region size is incorrect

Yumin Qi yumin.qi at oracle.com
Fri May 23 22:35:02 UTC 2014


Please review:

bug: https://bugs.openjdk.java.net/browse/JDK-8043896
webrev: http://cr.openjdk.java.net/~minqi/8043896/

Summary: In SharedSpaceType, we have three enum types which are used in 
report_out_of_shared_space((SharedSpaceType type). In fact we missed one 
which is corresponding to the first message and flag. This leads the 
warning always gives wrong message for the  three types.

Manually tested:

-bash-4.1$ $J9/bin/java -XX:+UnlockDiagnosticVMOptions 
-XX:SharedArchiveFile=./test.jsa -XX:SharedReadWriteSize=1M -Xshare:dump
Loading classes to share ... Java HotSpot(TM) 64-Bit Server VM warning:
The shared read write space is not large enough
to preload requested classes. Use -XX:SharedReadWriteSize=
to increase the initial size of shared read write space.

-bash-4.1$ $J9/bin/java -XX:+UnlockDiagnosticVMOptions 
-XX:SharedArchiveFile=./test.jsa -XX:SharedReadOnlySize=1M -Xshare:dump
Loading classes to share ... Java HotSpot(TM) 64-Bit Server VM warning:
The shared read only space is not large enough
to preload requested classes. Use -XX:SharedReadOnlySize=
to increase the initial size of shared read only space.

-bash-4.1$ $J9/bin/java -XX:+UnlockDiagnosticVMOptions 
-XX:SharedArchiveFile=./test.jsa -XX:SharedMiscDataSize=1M -Xshare:dump
Loading classes to share ... done.
Rewriting and linking classes ... done.
Number of classes 2465
Calculating fingerprints ... done.
Removing unshareable information ... done.
Java HotSpot(TM) 64-Bit Server VM warning:
The shared miscellaneous data space is not large enough
to preload requested classes. Use -XX:SharedMiscDataSize=
to increase the initial size of shared miscellaneous data space.

JPRT in progress.

Thanks
Yumin





More information about the hotspot-runtime-dev mailing list