Skip to content

Commit aad0315

Browse files
author
SendaoYan
committed
8320916: jdk/jfr/event/gc/stacktrace/TestParallelMarkSweepAllocationPendingStackTrace.java failed with "OutOfMemoryError: GC overhead limit exceeded"
Backport-of: 693847452f208446a34186f142fe2c56a49ceceb
1 parent 1fafc5d commit aad0315

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/jdk/jdk/jfr/event/gc/stacktrace/AllocationStackTrace.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ public void allocate() {
8181
class OldGenMemoryAllocator extends MemoryAllocator {
8282

8383
private List<byte[]> list = new ArrayList<byte[]>();
84-
private int counter = 6000;
84+
private int counter = 5000;
8585

8686
@Override
8787
public void allocate() {
8888
if (counter-- > 0) {
8989
list.add(new byte[10 * KB]);
9090
} else {
9191
list = new ArrayList<byte[]>();
92-
counter = 6000;
92+
counter = 5000;
9393
}
9494

9595
garbage = list;

0 commit comments

Comments
 (0)