Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8275037: Test vmTestbase/nsk/sysdict/vm/stress/btree/btree011/btree01…
…1.java crashes with memory exhaustion on Windows

Reviewed-by: coleenp
  • Loading branch information
Harold Seigel committed Nov 17, 2021
1 parent 2af9e59 commit 9f2f46e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
@@ -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
Expand Down Expand Up @@ -71,6 +71,7 @@ private static void build(String name, String prefix, Runnable generator) {
moveJavaFiles(genSrcDir, prefix);

JDKToolLauncher javac = JDKToolLauncher.create("javac")
.addToolArg("-J-Xmx1G")
.addToolArg("-d")
.addToolArg(classesDir.toString())
.addToolArg("-cp")
Expand Down
Expand Up @@ -148,8 +148,8 @@ public void run() {
// 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
Expand Down

3 comments on commit 9f2f46e

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GoeLin
Copy link
Member

@GoeLin GoeLin commented on 9f2f46e Mar 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/backport jdk17u-dev

@openjdk
Copy link

@openjdk openjdk bot commented on 9f2f46e Mar 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GoeLin the backport was successfully created on the branch GoeLin-backport-9f2f46ee in my personal fork of openjdk/jdk17u-dev. To create a pull request with this backport targeting openjdk/jdk17u-dev:master, just click the following link:

➡️ Create pull request

The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:

Hi all,

This pull request contains a backport of commit 9f2f46ee from the openjdk/jdk repository.

The commit being backported was authored by Harold Seigel on 17 Nov 2021 and was reviewed by Coleen Phillimore.

Thanks!

If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk17u-dev:

$ git fetch https://github.com/openjdk-bots/jdk17u-dev GoeLin-backport-9f2f46ee:GoeLin-backport-9f2f46ee
$ git checkout GoeLin-backport-9f2f46ee
# make changes
$ git add paths/to/changed/files
$ git commit --message 'Describe additional changes made'
$ git push https://github.com/openjdk-bots/jdk17u-dev GoeLin-backport-9f2f46ee

Please sign in to comment.