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

Unified Diff: runtime/vm/heap.cc

Issue 2683633005: Add exception handler cache to isolate (Closed)
Patch Set: Address review commments Created 3 years, 10 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/heap.cc
diff --git a/runtime/vm/heap.cc b/runtime/vm/heap.cc
index d8ce15740a980e1d6327333eb41a7baa3d1013b4..04dec1b028e0aefb64164ecf87bfb4690e3ebc6f 100644
--- a/runtime/vm/heap.cc
+++ b/runtime/vm/heap.cc
@@ -402,6 +402,8 @@ void Heap::CollectOldSpaceGarbage(Thread* thread,
RecordAfterGC(kOld);
PrintStats();
NOT_IN_PRODUCT(PrintStatsToTimeline(&tds));
+ // Some Code objects may have been collected so invalidate handler cache.
+ thread->isolate()->handler_info_cache()->Clear();
EndOldSpaceGC();
}
}

Powered by Google App Engine
This is Rietveld 408576698