Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 9933530
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/src/main/java/org/jvnet/hudson/test/MemoryAssert.java
Expand Up @@ -134,6 +134,7 @@ public static List<HistogramElement> increasedMemory(Callable<Void> callable, Fi
* @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 {
Expand Down

0 comments on commit 9933530

Please sign in to comment.