Skip to content

Commit 13cb6a4

Browse files
committed
8338482: com/sun/jdi/ThreadMemoryLeakTest.java requires that compressed oops are enabled
Backport-of: d72810794bf70f82e46f7220698e4d27d5973d5b
1 parent e07ae66 commit 13cb6a4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/jdk/com/sun/jdi/ThreadMemoryLeakTest.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2023, 2024, 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
@@ -26,8 +26,9 @@
2626
* @bug 8297638
2727
* @summary JDI memory leak when creating and destroying many threads
2828
*
29-
* @comment Don't allow -Xcomp or -Xint as they impact memory useage and number of iterations
30-
* @requires (vm.compMode == "Xmixed")
29+
* @comment Don't allow -Xcomp or -Xint as they impact memory useage and number of iterations.
30+
* Require compressed oops because not doing so increases memory usage.
31+
* @requires (vm.compMode == "Xmixed") & vm.opt.final.UseCompressedOops
3132
* @run build TestScaffold VMConnection TargetListener TargetAdapter
3233
* @run compile -g ThreadMemoryLeakTest.java
3334
* @comment run with -Xmx7m so any leak will quickly produce OOME

0 commit comments

Comments
 (0)