OSDN Git Service

Replace generic GC type flag with a specific Generational CC flag.
authorRoland Levillain <rpl@google.com>
Tue, 19 Feb 2019 18:09:58 +0000 (18:09 +0000)
committerRoland Levillain <rpl@google.com>
Wed, 20 Feb 2019 10:46:55 +0000 (10:46 +0000)
commit72b16f0ad0a4f0f81c0db4a24ecd6629348950e0
tree24254eda621a9eafd91733a76bc6da2450aaa1a8
parenta331a7bd168f3c974c50b5cfaf9f6c415b93c597
Replace generic GC type flag with a specific Generational CC flag.

The "gctype" device configuration flag (from the "runtime_native_boot"
namespace) was a string passed verbatim as an argument to the runtime
option "-Xgc". It was too generic, conveyed no typing information, and
was error-prone (there was no control over what was passed from the
server to the zygote, and then to the runtime).

This change replaces "gctype" with a specific, Boolean
"enable_generational_cc" flag. This new flag better reflects the
nature of the experiment to be conducted (either enable or disable
generational garbage collection in ART's concurrent copying
collector).

Test: core/jni/runtime_native_boot-flags-test.sh
Bug: 72446017
Bug: 120794191
Bug: 123754583
Change-Id: I30a73171c0dc3c7bc891c4f164eed0ba42b0f420
core/jni/AndroidRuntime.cpp
core/jni/runtime_native_boot-flags-test.sh