Skip to content
Permalink
Browse files

[JENKINS-15156] Class loading errors can result from OOME if you are …

…not careful.

Originally-Committed-As: 74e6409a06531144316f2e36bdc0b069de52b94d
  • Loading branch information
jglick committed Feb 7, 2013
1 parent 6856f5d commit 9933530be8674c316f6be0fafc71c9239c0755f7
Showing with 1 addition and 0 deletions.
  1. +1 −0 test/src/main/java/org/jvnet/hudson/test/MemoryAssert.java
@@ -134,6 +134,7 @@ public static void assertHeapUsage(Object o, int max) throws Exception {
* @param reference object used to verify garbage collection.
*/
public static void assertGC(WeakReference<?> reference) {
assertTrue(true); reference.get(); // preload any needed classes!
Set<Object[]> objects = new HashSet<Object[]>();
while (true) {
try {

0 comments on commit 9933530

Please sign in to comment.
You can’t perform that action at this time.