RFR: 8258836: JNI local refs exceed capacity getDiagnosticCommandInfo

Aleksey Shipilev shade at openjdk.java.net
Tue Jan 19 09:44:52 UTC 2021


On Mon, 18 Jan 2021 14:10:56 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:

> This patch adds some explicit capacity for local refs. New regression test
> fails prior and passes after the patch.
> 
> Thoughts?

test/jdk/com/sun/management/DiagnosticCommandMBean/DcmdMBeanTestCheckJni.java line 38:

> 36: public class DcmdMBeanTestCheckJni {
> 37: 
> 38:     public static void main(String[] args) throws Exception {

I thought that handling the whole test in one file is the good style. See for example `
test/hotspot/jtreg/gc/stress/TestStressG1Uncommit.java`.

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

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


More information about the serviceability-dev mailing list