blob: 8f6bcc3a55e6c5bdb3a8189c5a8b9e3f01d19dbd [file] [log] [blame]
Hans Boehmc220f982018-10-12 16:15:45 -07001Allocate 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 :-( .