Make kHugeNativeAllocs configurable

Add -XX:StopForNativeAllocs command line argument to replace
kHugeNativeAllocs constant.

The default remains at 1 GB. But This default will allow small
memory devices to run out of memory if we allocate Java owned native
memory faster than what the GC can keep up with. Setting it to
a smaller value should prevent that.

Bug: 122552730
Test: Boot AOSP, Treehugger

Change-Id: I5c84b2f1f67038e1b7a0ca3f5fc08090359c5f3e
6 files changed