RFR: 8251904: vmTestbase/nsk/sysdict/vm/stress/btree/btree010/btree010.java fails with ClassNotFoundException: nsk.sysdict.share.BTree0LLRLRLRRLR

Leonid Mesnik lmesnik at openjdk.java.net
Mon Oct 25 21:50:05 UTC 2021


On Mon, 25 Oct 2021 17:53:32 GMT, Harold Seigel <hseigel at openjdk.org> wrote:

> Please review this fix for JDK-8251904.  The fix ignores ClassNotFoundExceptions that are thrown when calling Class.forName() because they can be caused by OutOfMemoryErrors.  These can get thrown because of other threads calling GarbageUtils.eatMemory().
> 
> The test was run 1000 times on Linux x64 without the fix and failed once.  It was run 5000 times with the fix and had no failures.  The change was also tested by running Mach5 tier5 on Windows and Linux.
> 
> Thanks, Harold

Marked as reviewed by lmesnik (Reviewer).

test/hotspot/jtreg/vmTestbase/nsk/sysdict/share/SysDictTest.java line 153:

> 151:                 } catch (OutOfMemoryError | ClassNotFoundException e) {
> 152:                     // just ignore
> 153:                     // we do not check memory leaks in PermGen in this tests

Could you please update this comment also to don't mention PermGen?

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

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


More information about the hotspot-runtime-dev mailing list