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

Unified Diff: runtime/vm/gc_marker.cc

Issue 197963002: Remove the ability to allow multiple gc prologue and gc epilogue callbacks (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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
« no previous file with comments | « runtime/vm/gc_callbacks.h ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/gc_marker.cc
===================================================================
--- runtime/vm/gc_marker.cc (revision 33620)
+++ runtime/vm/gc_marker.cc (working copy)
@@ -316,8 +316,8 @@
void GCMarker::Prologue(Isolate* isolate, bool invoke_api_callbacks) {
- if (invoke_api_callbacks) {
- isolate->gc_prologue_callbacks().Invoke();
+ if (invoke_api_callbacks && (isolate->gc_prologue_callback() != NULL)) {
+ (isolate->gc_prologue_callback())();
}
// The store buffers will be rebuilt as part of marking, reset them now.
isolate->store_buffer()->Reset();
@@ -325,8 +325,8 @@
void GCMarker::Epilogue(Isolate* isolate, bool invoke_api_callbacks) {
- if (invoke_api_callbacks) {
- isolate->gc_epilogue_callbacks().Invoke();
+ if (invoke_api_callbacks && (isolate->gc_epilogue_callback() != NULL)) {
+ (isolate->gc_epilogue_callback())();
}
}
« no previous file with comments | « runtime/vm/gc_callbacks.h ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698