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

Unified Diff: src/global-handles.h

Issue 885553005: Collect phantom callback data only once during gc. For scavenges, just consider the young handles r… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@weak-allocation-sites
Patch Set: Created 5 years, 11 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 | « no previous file | src/global-handles.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/global-handles.h
diff --git a/src/global-handles.h b/src/global-handles.h
index 20da53a185c4a232864c71c4bbbb6e2a2306d2bd..767989c77e3ceb23f6602294e2c0e27da2421e0a 100644
--- a/src/global-handles.h
+++ b/src/global-handles.h
@@ -165,7 +165,11 @@ class GlobalHandles {
// Collect up data for the weak handle callbacks after GC has completed, but
// before memory is reclaimed.
- void CollectPhantomCallbackData();
+ void CollectAllPhantomCallbackData();
+
+ // Collect up data for the weak handle callbacks referenced by young
+ // generation after GC has completed, but before memory is reclaimed.
+ void CollectYoungPhantomCallbackData();
// Clear the weakness of a global handle.
static void* ClearWeakness(Object** location);
« no previous file with comments | « no previous file | src/global-handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698