Skip to content

Commit d254cf2

Browse files
committed
8281638: jfr/event/allocation tests fail with release VMs after JDK-8281318 due to lack of -XX:+UnlockDiagnosticVMOptions
Reviewed-by: shade
1 parent 4d64076 commit d254cf2

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

test/jdk/jdk/jfr/event/allocation/TestObjectAllocationInNewTLABEvent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2022, 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
@@ -42,10 +42,10 @@
4242
* @build sun.hotspot.WhiteBox
4343
*
4444
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox
45-
* @run main/othervm -XX:+WhiteBoxAPI -Xbootclasspath/a:.
45+
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
4646
* -XX:+UseTLAB -XX:TLABSize=100k -XX:-ResizeTLAB -XX:TLABRefillWasteFraction=1
4747
* jdk.jfr.event.allocation.TestObjectAllocationInNewTLABEvent
48-
* @run main/othervm -XX:+WhiteBoxAPI -Xbootclasspath/a:.
48+
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
4949
* -XX:+UseTLAB -XX:TLABSize=100k -XX:-ResizeTLAB -XX:TLABRefillWasteFraction=1
5050
* -Xint
5151
* jdk.jfr.event.allocation.TestObjectAllocationInNewTLABEvent

test/jdk/jdk/jfr/event/allocation/TestObjectAllocationOutsideTLABEvent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2022, 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
@@ -42,10 +42,10 @@
4242
* @build sun.hotspot.WhiteBox
4343
*
4444
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox
45-
* @run main/othervm -XX:+WhiteBoxAPI -Xbootclasspath/a:.
45+
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
4646
* -XX:+UseTLAB -XX:TLABSize=90k -XX:-ResizeTLAB -XX:TLABRefillWasteFraction=256
4747
* jdk.jfr.event.allocation.TestObjectAllocationOutsideTLABEvent
48-
* @run main/othervm -XX:+WhiteBoxAPI -Xbootclasspath/a:.
48+
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
4949
* -XX:+UseTLAB -XX:TLABSize=90k -XX:-ResizeTLAB -XX:TLABRefillWasteFraction=256
5050
* -Xint
5151
* jdk.jfr.event.allocation.TestObjectAllocationOutsideTLABEvent

test/jdk/jdk/jfr/event/allocation/TestObjectAllocationSampleEventThrottling.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2022, 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
@@ -44,7 +44,7 @@
4444
* @build sun.hotspot.WhiteBox
4545
*
4646
* @run driver jdk.test.lib.helpers.ClassFileInstaller sun.hotspot.WhiteBox
47-
* @run main/othervm -XX:+WhiteBoxAPI -Xbootclasspath/a:.
47+
* @run main/othervm -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:.
4848
* -XX:+UseTLAB -XX:TLABSize=2k -XX:-ResizeTLAB
4949
* jdk.jfr.event.allocation.TestObjectAllocationSampleEventThrottling
5050
*/

0 commit comments

Comments
 (0)