зеркало из https://github.com/mozilla/pluotsorbet.git
Force a collection at the beginning of TestRuntime to make a collection while allocating the array less likely. Fixes #1772.
This commit is contained in:
Родитель
7a16a8e285
Коммит
c146d91b9a
|
@ -9,6 +9,10 @@ public class TestRuntime implements Testlet {
|
|||
public int getExpectedKnownFail() { return 0; }
|
||||
|
||||
public void test(TestHarness th) {
|
||||
System.out.println("freeMemory0: " + Runtime.getRuntime().freeMemory());
|
||||
|
||||
Runtime.getRuntime().gc();
|
||||
|
||||
long totalMemory = Runtime.getRuntime().totalMemory();
|
||||
long freeMemory = Runtime.getRuntime().freeMemory();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче