Fix a heap lock/thread list lock deadlock.
We had an uncaught OOME whose uncaught exception handler -- running
with the thread lock held -- was trying to cause a GC while some
other thread had the heap lock and was waiting for the thread list
lock.
Change-Id: I22177129562268837127d9edcc63ef5e93054bdf
diff --git a/test/ParallelGC/ParallelGC.java b/test/ParallelGC/ParallelGC.java
index 13cb603..eb9e04e 100644
--- a/test/ParallelGC/ParallelGC.java
+++ b/test/ParallelGC/ParallelGC.java
@@ -41,9 +41,7 @@
List l = new ArrayList();
for (int i = 0; i < 1000; i++) {
l.add(new ArrayList(i));
- if (false) {
- System.out.print(id);
- }
+ System.out.print(id);
}
}
}