junk = null; cursor = 0; System.out.println("  Caught OutOfMemory - freeing now"); System.out.println("  Maximum size reached is " + size);
junk = null; cursor = 0; o.println("  Caught OutOfMemory - freeing now");    o.println("  Had " + tot + " bytes allocated; failed trying to allocate " + wasAllocating + " bytes"); } if (junk != null) { junk = null; o.println("  Had " + tot + " bytes allocated; kept on allocating until we couldn't go any further; this should never happen.");
  public static void runTest()     throws // Throwable, 	   VM_PragmaNoInline   {    double growthFactor = 1.0;    for (int i=1; i<=10; i++) {	growthFactor *= metaGrowthFactor;	growthFactor = ((int) (100 * growthFactor)) / 100.0;	o.println("Starting round " + i + " with growthFactor " + growthFactor);	junk = new Object[metaSize];	o.println("  Allocating until exception thrown");      int size = itemSize;      try {	  size = doInner(size);      }      catch (OutOfMemoryError e) {	  junk = null;  // kills everything	  cursor = 0;	  System.out.println("  Caught OutOfMemory - freeing now");  // this allocates; must follow nulling	  System.out.println("  Maximum size reached is " + size);      }    }    System.out.println("Overall: SUCCESS");  }