Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.
/ jdk22u Public archive

Commit

Permalink
8325862: set -XX:+ErrorFileToStderr when executing java in containers…
Browse files Browse the repository at this point in the history
… for some container related jtreg tests

Backport-of: 9f4ec21f4793d4c5fc10f93a32140c26ec0eec00
  • Loading branch information
MBaesken committed Mar 6, 2024
1 parent 324d7cc commit d6fc2b1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2024, 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 @@ -60,6 +60,9 @@ public DockerRunOptions(String imageNameAndTag, String javaCmd,
this.command = javaCmd;
this.classToRun = classToRun;
this.addJavaOpts(javaOpts);
// always print hserr to stderr in the docker tests to avoid
// trouble accessing it after a crash in the container
this.addJavaOpts("-XX:+ErrorFileToStderr");
}

public DockerRunOptions addDockerOpts(String... opts) {
Expand Down

1 comment on commit d6fc2b1

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

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

Please sign in to comment.