Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1876)

Unified Diff: runtime/vm/isolate.cc

Issue 2998473002: [vm] Revert changes related to triggering the 1st GC (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index 8589373d6fda2de551c70ceb77942a4a4ae4c2b7..69434d068e8559b67d09c52bcf460d3e069c7ff7 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -754,12 +754,12 @@ Isolate::Isolate(const Dart_IsolateFlags& api_flags)
compilation_allowed_(true),
all_classes_finalized_(false),
remapping_cids_(false),
+ start_time_micros_(OS::GetCurrentMonotonicMicros()),
#if !defined(PRODUCT)
resume_request_(false),
has_attempted_reload_(false),
should_pause_post_service_request_(false),
debugger_name_(NULL),
- start_time_micros_(OS::GetCurrentMonotonicMicros()),
debugger_(NULL),
last_resume_timestamp_(OS::GetCurrentTimeMillis()),
last_allocationprofile_accumulator_reset_timestamp_(0),
@@ -987,11 +987,11 @@ void Isolate::set_debugger_name(const char* name) {
free(debugger_name_);
debugger_name_ = strdup(name);
}
+#endif // !defined(PRODUCT)
int64_t Isolate::UptimeMicros() const {
return OS::GetCurrentMonotonicMicros() - start_time_micros_;
}
-#endif // !defined(PRODUCT)
bool Isolate::IsPaused() const {
#if defined(PRODUCT)
« runtime/vm/isolate.h ('K') | « runtime/vm/isolate.h ('k') | runtime/vm/pages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698