RFR: 8261607: SA attach is exceeding JNI Local Refs capacity

Severin Gehwolf sgehwolf at openjdk.java.net
Mon Feb 15 13:27:41 UTC 2021


On Mon, 15 Feb 2021 06:00:29 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

> Delete some localrefs to avoid -Xcheck:jni warnings. See CR for details.

test/hotspot/jtreg/serviceability/sa/ClhsdbLauncher.java line 149:

> 147:         // Make sure no -Xcheck:jni failures. WARNING: JNI local refs
> 148:         oa.shouldNotMatch("^WARNING: JNI local refs:.*$");
> 149:         oa.shouldNotMatch("^WARNING in native method:.*$");

It's not clear to me why this matcher is being done without any tests using `-Xcheck:jni`. Is this intentional?

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

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


More information about the serviceability-dev mailing list