[9] RFR(S) 8171134: Unexpected output in compiler/aot/SharedUsageTest.java

Vladimir Kozlov vladimir.kozlov at oracle.com
Tue Dec 13 04:35:47 UTC 2016


https://bugs.openjdk.java.net/browse/JDK-8171134

http://cr.openjdk.java.net/~kvn/8171134/webrev/

AOT requires to have the same compressed oops settings when AOT code is 
compiled and when it is executed because oop shift values are embedded 
into decoding instructions.
To have the the same heap size and heap base address should be the same. 
Unfortunately it is not always the same when nothing is specified on 
command line (HeapBaseMinAddress). And even that does not guarantee 
matching.
If parameters are not the same AOT code will be ignored.
But AOT tests incorrectly assume that configuration will be the same.

For short fix I am suggesting to switch off compressed oops for few AOT 
test which could be affected by this issue. The test do not needed COOPs 
for what they are testing.

Thanks,
Vladimir



More information about the hotspot-compiler-dev mailing list