RFR: 8309671: Avoid using jvmci.Compiler property to determine if Graal is enabled

Doug Simon dnsimon at openjdk.org
Thu Jun 8 17:40:04 UTC 2023


On Thu, 8 Jun 2023 17:14:39 GMT, Yudi Zheng <yzheng at openjdk.org> wrote:

> HeapMonitor checks if System.getProperty("jvmci.Compiler") is graal and will not enforce checking line number derived from uncommon trap debug info. However, Graal does not set this property explicitly.

test/hotspot/jtreg/serviceability/jvmti/HeapMonitor/MyPackage/HeapMonitor.java line 257:

> 255: 
> 256:       checkLines = !(enableJVMCI.getValue().equals("true")
> 257:           && useJVMCICompiler.getValue().equals("true"));

Is it possible to use `jdk.test.whitebox.code.Compiler.isGraalEnabled()` here instead?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14381#discussion_r1223342262


More information about the serviceability-dev mailing list