Skip to content

Commit 2f33cec

Browse files
committed
8338428: Add logging of final VM flags while setting properties
Reviewed-by: rschmelter Backport-of: 48277018a5a3fe861ebe9bf0860a2809611fb66f
1 parent dde0cc7 commit 2f33cec

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

test/hotspot/jtreg/TEST.ROOT

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
2+
# Copyright (c) 2005, 2025, Oracle and/or its affiliates. All rights reserved.
33
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
#
55
# This code is free software; you can redistribute it and/or modify it
@@ -46,7 +46,10 @@ requires.extraPropDefns.bootlibs = ../../lib/jdk/test/whitebox
4646
requires.extraPropDefns.libs = \
4747
../../lib/jdk/test/lib/Platform.java \
4848
../../lib/jdk/test/lib/Container.java
49-
requires.extraPropDefns.vmOpts = -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
49+
requires.extraPropDefns.vmOpts = -XX:+UnlockDiagnosticVMOptions \
50+
-XX:+LogVMOutput -XX:-DisplayVMOutput -XX:LogFile=vmprops.flags.final.vm.log \
51+
-XX:+PrintFlagsFinal \
52+
-XX:+WhiteBoxAPI
5053
requires.properties= \
5154
sun.arch.data.model \
5255
vm.simpleArch \

test/jdk/TEST.ROOT

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
#
2+
# Copyright (c) 2005, 2025, Oracle and/or its affiliates. All rights reserved.
3+
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4+
#
15
# This file identifies the root of the test-suite hierarchy.
26
# It also contains test-suite configuration information.
3-
7+
#
48
# The list of keywords supported in the entire test suite. The
59
# "intermittent" keyword marks tests known to fail intermittently.
610
# The "randomness" keyword marks tests using randomness with test
@@ -72,7 +76,10 @@ requires.extraPropDefns.bootlibs = ../lib/jdk/test/whitebox
7276
requires.extraPropDefns.libs = \
7377
../lib/jdk/test/lib/Platform.java \
7478
../lib/jdk/test/lib/Container.java
75-
requires.extraPropDefns.vmOpts = -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI
79+
requires.extraPropDefns.vmOpts = -XX:+UnlockDiagnosticVMOptions \
80+
-XX:+LogVMOutput -XX:-DisplayVMOutput -XX:LogFile=vmprops.flags.final.vm.log \
81+
-XX:+PrintFlagsFinal \
82+
-XX:+WhiteBoxAPI
7683
requires.properties= \
7784
sun.arch.data.model \
7885
java.runtime.name \

0 commit comments

Comments
 (0)