summaryrefslogtreecommitdiff
path: root/runtime/runtime.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2015-12-08 08:22:45 -0800
committer android-build-merger <android-build-merger@google.com> 2015-12-08 08:22:45 -0800
commit0b81f1715d6af9f98f982d6511e48973aa5a836a (patch)
tree06924f7e4b7f14db21fe41ec03a6b95eec29efeb /runtime/runtime.h
parent641c83a8645ef9fd99dca06ec30bae8449b959c7 (diff)
parent2433d4e17c3006b8262a0d9421e201fc84777208 (diff)
Merge "Allow initializing runtime with parsed options." am: e0d25b156e
am: 2433d4e17c * commit '2433d4e17c3006b8262a0d9421e201fc84777208': Allow initializing runtime with parsed options.
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r--runtime/runtime.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h
index bd3641405d..93d8fcfa46 100644
--- a/runtime/runtime.h
+++ b/runtime/runtime.h
@@ -84,6 +84,7 @@ class MonitorList;
class MonitorPool;
class NullPointerHandler;
class OatFileManager;
+struct RuntimeArgumentMap;
class SignalCatcher;
class StackOverflowHandler;
class SuspensionHandler;
@@ -112,8 +113,17 @@ enum VisitRootFlags : uint8_t {
class Runtime {
public:
+ // Parse raw runtime options.
+ static bool ParseOptions(const RuntimeOptions& raw_options,
+ bool ignore_unrecognized,
+ RuntimeArgumentMap* runtime_options);
+
+ // Creates and initializes a new runtime.
+ static bool Create(RuntimeArgumentMap&& runtime_options)
+ SHARED_TRYLOCK_FUNCTION(true, Locks::mutator_lock_);
+
// Creates and initializes a new runtime.
- static bool Create(const RuntimeOptions& options, bool ignore_unrecognized)
+ static bool Create(const RuntimeOptions& raw_options, bool ignore_unrecognized)
SHARED_TRYLOCK_FUNCTION(true, Locks::mutator_lock_);
// IsAotCompiler for compilers that don't have a running runtime. Only dex2oat currently.
@@ -599,7 +609,7 @@ class Runtime {
void BlockSignals();
- bool Init(const RuntimeOptions& options, bool ignore_unrecognized)
+ bool Init(RuntimeArgumentMap&& runtime_options)
SHARED_TRYLOCK_FUNCTION(true, Locks::mutator_lock_);
void InitNativeMethods() REQUIRES(!Locks::mutator_lock_);
void InitThreadGroups(Thread* self);