RFR: 8273804: Platform.isTieredSupported should handle the no-compiler case

Aleksey Shipilev shade at openjdk.java.net
Thu Sep 16 07:56:50 UTC 2021


On Wed, 15 Sep 2021 10:29:36 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> Happens with Zero tests:
> 
> 
> $ CONF=linux-x86_64-zero-fastdebug make exploded-test TEST=compiler/codecache/CheckSegmentedCodeCache.java
> ...
> 
> java.lang.NullPointerException: Cannot invoke "String.contains(java.lang.CharSequence)" because "jdk.test.lib.Platform.compiler" is null
> at jdk.test.lib.Platform.isTieredSupported(Platform.java:82)
> at compiler.codecache.CheckSegmentedCodeCache.verifySegmentedCodeCache(CheckSegmentedCodeCache.java:61)
> at compiler.codecache.CheckSegmentedCodeCache.main(CheckSegmentedCodeCache.java:108)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:568)
> at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
> at java.base/java.lang.Thread.run(Thread.java:833) 
> 
> 
> Additional testing:
>  - [x] Linux x86_64 Zero, `compiler/codecache/CheckSegmentedCodeCache.java` now properly fails with "no compilers" error

Thank you!

-------------

PR: https://git.openjdk.java.net/jdk/pull/5528


More information about the core-libs-dev mailing list