Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.
/ jdk18u Public archive

Commit ece6baa

Browse files
committed
8281638: jfr/event/allocation tests fail with release VMs after JDK-8281318 due to lack of -XX:+UnlockDiagnosticVMOptions
Backport-of: d254cf28c5e72bd9b8de863b831015237640ca25
1 parent b50949a commit ece6baa

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)