commit | bb2467b398481a15ddb0b65cfcf3c15ff3cb0b8d | [log] [tgz] |
---|---|---|
author | Hans Boehm <hboehm@google.com> | Fri Mar 29 22:55:06 2019 -0700 |
committer | Hans Boehm <hboehm@google.com> | Sat Apr 20 00:52:14 2019 +0000 |
tree | 1fb58f57d31e0adb6e5b3170a45de16d3e5179f0 | |
parent | 7c887c57b1b32b9432c74582ab9a4be43a280ee9 [diff] |
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