8275037: Test vmTestbase/nsk/sysdict/vm/stress/btree/btree011/btree011.java crashes with memory exhaustion on Windows

Reviewed-by: coleenp
This commit is contained in:
Harold Seigel 2021-11-17 14:25:17 +00:00
parent 2af9e5976f
commit 9f2f46ee45
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -71,6 +71,7 @@ public class GenClassesBuilder {
moveJavaFiles(genSrcDir, prefix);
JDKToolLauncher javac = JDKToolLauncher.create("javac")
.addToolArg("-J-Xmx1G")
.addToolArg("-d")
.addToolArg(classesDir.toString())
.addToolArg("-cp")

View File

@ -148,8 +148,8 @@ public abstract class SysDictTest extends ThreadedGCTest {
// set name into public variable just to be sure
// that class is loaded
tmp = clz.getName();
} catch (OutOfMemoryError | ClassNotFoundException e) {
// just ignore
} catch (OutOfMemoryError | ClassNotFoundException | NoClassDefFoundError e) {
// just ignore, note that CNFE and NCDFE can be caused by OOM exceptions.
} catch (StackOverflowError soe) {
// just ignore, chains could be too large
// StackOverflowError could be in some sparcs