mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-23 22:29:55 +00:00
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:
parent
2af9e5976f
commit
9f2f46ee45
@ -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")
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user