Lines Matching refs:runtime
64 #include "runtime.h"
971 Runtime* runtime = Runtime::Current();
972 runtime->GetThreadList()->SuspendAll();
974 size_t count = runtime->GetMonitorList()->DeflateMonitors();
977 runtime->GetThreadList()->ResumeAll();
1563 // Don't allow heap transitions to happen if the runtime is shutting down since these can
1611 Runtime* const runtime = Runtime::Current();
1612 ThreadList* const tl = runtime->GetThreadList();
1643 if (runtime->IsShuttingDown(self)) {
1644 // Don't allow heap transitions to happen if the runtime is shutting down since these can
2068 Runtime* runtime = Runtime::Current();
2103 if (gc_cause == kGcCauseForAlloc && runtime->HasStatsEnabled()) {
2104 ++runtime->GetStats()->gc_for_alloc_count;
2159 collector->Run(gc_cause, clear_soft_references || runtime->IsZygote());
2704 // TODO: Add a new runtime option for this?
2958 Runtime* runtime = Runtime::Current();
2959 if (runtime == nullptr || !runtime->IsFinishedStarting() || runtime->IsShuttingDown(self) ||
3024 Runtime* runtime = Runtime::Current();
3025 if (runtime == nullptr || !runtime->IsFinishedStarting() || runtime->IsShuttingDown(self) ||
3026 runtime->IsZygote()) {
3029 // Heap trimming isn't supported without a Java runtime or Daemons (such as at dex2oat time)
3030 // Also: we do not wish to start a heap trim if the runtime is shutting down (a racy check