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