Home | History | Annotate | Download | only in 175-alloc-big-bignums
      1 Allocate large numbers of huge BigIntegers in rapid succession. Most of the
      2 associated memory will be in the C++ heap. This makes sure that we trigger
      3 the garbage collector often enough to prevent us from running out of memory.
      4 
      5 The test allocates roughly 10GB of native memory, approximately 1MB of which
      6 will be live at any point. Basically all native memory deallocation is
      7 triggered by Java garbage collection.
      8 
      9 This test is a lot nastier than it looks. In particular, failure on target tends
     10 to exhaust device memory, and kill off all processes on the device, including the
     11 adb daemon :-( .
     12