RFR: 8374879: NMethodRelocationTest fails with -Xcomp after 8369150

Leonid Mesnik lmesnik at openjdk.org
Fri Jan 9 18:01:47 UTC 2026


On Fri, 9 Jan 2026 13:41:22 GMT, SendaoYan <syan at openjdk.org> wrote:

> Hi all,
> 
> It seems that -Xcomp will compile all the java methods. And one of those method trigger NULL_CHECK assert inside jvmti->GetMethodName function. The method which trigger NULL_CHECK assert only observed when this test started by jtreg.
> So I think this test do not compatible with -Xcomp option.
> 
> This PR add another "@requires'' to skip this test when jtreg receive -Xcomp option.

I thought that
vm.compMode != "Xcomp"
should be enough. 
Should n't vm.compMode != "Xcomp"  be true when it is null?

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

Marked as reviewed by lmesnik (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/29139#pullrequestreview-3645013770


More information about the serviceability-dev mailing list