8343953: Test jdk/jfr/threading/TestDeepVirtualStackTrace.java fails with Parallel/Serial GC
Reviewed-by: mli
This commit is contained in:
parent
752e162955
commit
68164a4847
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
@ -42,7 +42,7 @@ import jdk.test.lib.jfr.Events;
|
|||||||
* @requires vm.hasJFR & vm.continuations
|
* @requires vm.hasJFR & vm.continuations
|
||||||
* @library /test/lib /test/jdk
|
* @library /test/lib /test/jdk
|
||||||
* @modules jdk.jfr/jdk.jfr.internal
|
* @modules jdk.jfr/jdk.jfr.internal
|
||||||
* @run main/othervm -XX:FlightRecorderOptions:stackdepth=2048
|
* @run main/othervm -XX:MaxNewSize=40M -XX:FlightRecorderOptions:stackdepth=2048
|
||||||
* jdk.jfr.threading.TestDeepVirtualStackTrace
|
* jdk.jfr.threading.TestDeepVirtualStackTrace
|
||||||
*/
|
*/
|
||||||
public class TestDeepVirtualStackTrace {
|
public class TestDeepVirtualStackTrace {
|
||||||
@ -80,6 +80,8 @@ public class TestDeepVirtualStackTrace {
|
|||||||
|
|
||||||
private static void deepsleep(int depth) {
|
private static void deepsleep(int depth) {
|
||||||
if (depth == 0) {
|
if (depth == 0) {
|
||||||
|
// The TLAB max size is not limited explicitly
|
||||||
|
// So the test limit max size of young generation to allocate outside TLAB
|
||||||
allocated = new Object[10_000_000];
|
allocated = new Object[10_000_000];
|
||||||
System.out.println("Emitted ObjectAllocationOutsideTLAB event");
|
System.out.println("Emitted ObjectAllocationOutsideTLAB event");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user