Lines Matching refs:runtime
35 #include "runtime.h"
45 // TODO: Move to <runtime/utils.h> and remove all copies of this function.
89 static Runtime* StartRuntime(const char* boot_image_location,
115 // Explicit runtime args.
123 if (!Runtime::Create(options, false)) {
124 fprintf(stderr, "Failed to create runtime\n");
128 // Runtime::Create acquired the mutator_lock_ that is normally given away when we Runtime::Start,
132 return Runtime::Current();
167 } else if (option == "--runtime-arg") {
169 fprintf(stderr, "Missing argument for --runtime-arg\n");
231 " --runtime-arg <argument> used to specify various arguments for the runtime\n"
233 " Use a separate --runtime-arg switch for each argument.\n"
234 " Example: --runtime-arg -Xms256m\n"
248 // Runtime arguments specified by --runtime-arg.
279 // This prevents a common error "Could not create an image space..." when initing the Runtime.
335 InitLogging(argv, Runtime::Abort);
346 std::unique_ptr<Runtime> runtime;
356 runtime.reset(CreateRuntime(args.get()));
357 if (runtime == nullptr) {
360 if (!ExecuteWithRuntime(runtime.get())) {
382 // Override this function to do something else with the runtime.
383 virtual bool ExecuteWithRuntime(Runtime* runtime) {
384 CHECK(runtime != nullptr);
389 // Does the code execution need a runtime? Sometimes it doesn't.
394 // Do execution without having created a runtime.
399 // Continue execution after ExecuteWith[out]Runtime
410 Runtime* CreateRuntime(CmdlineArgs* args) {