mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-20 02:17:53 +00:00
8377347: jdk/jfr/event/gc/detailed/TestZAllocationStallEvent.java intermittent OOME
Reviewed-by: ayang, stefank
This commit is contained in:
parent
eecc0d6904
commit
0842782b7a
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2020, 2026, 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
|
||||
@ -36,7 +36,8 @@ import jdk.test.lib.jfr.Events;
|
||||
* @requires vm.hasJFR & vm.gc.Z
|
||||
* @requires vm.flagless
|
||||
* @library /test/lib /test/jdk /test/hotspot/jtreg
|
||||
* @run main/othervm -XX:+UseZGC -Xmx32M -Xlog:gc*:gc.log::filecount=0 jdk.jfr.event.gc.detailed.TestZAllocationStallEvent
|
||||
* @run main/othervm -XX:+UseZGC -Xmx64M -Xlog:gc*:gc.log::filecount=0
|
||||
* jdk.jfr.event.gc.detailed.TestZAllocationStallEvent
|
||||
*/
|
||||
|
||||
public class TestZAllocationStallEvent {
|
||||
@ -47,7 +48,7 @@ public class TestZAllocationStallEvent {
|
||||
recording.start();
|
||||
|
||||
// Allocate many large objects quickly, to outrun the GC
|
||||
for (int i = 0; i < 100; i++) {
|
||||
for (int i = 0; i < 1000; i++) {
|
||||
blackHole(new byte[4 * 1024 * 1024]);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user