OSDN Git Service

Revert "Revert "ART: Make 074-gc-thrash more OOME tolerant""
authorNicolas Geoffray <ngeoffray@google.com>
Tue, 3 Feb 2015 10:10:52 +0000 (10:10 +0000)
committerNicolas Geoffray <ngeoffray@google.com>
Tue, 3 Feb 2015 10:10:52 +0000 (10:10 +0000)
This reverts commit ed8b53d679d46891d8d405b0ce4a48c282d872f7.

This wasn't the reason for breakage. Instead, it was the Makefile change in:
https://android-review.googlesource.com/#/c/128250/

Change-Id: Ib94870c1eccbe821e3b4945ea92ca35ca0a8a9b9

test/074-gc-thrash/src/Main.java

index 32fbf2d..238e73a 100644 (file)
@@ -292,8 +292,8 @@ class Deep extends Thread {
                     break;
             }
 
-            strong[depth] = funStr;
             weak[depth] = new WeakReference(funStr);
+            strong[depth] = funStr;
             if (depth+1 < MAX_DEPTH)
                 dive(depth+1, iteration+1);
             else