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

Unified Diff: third_party/WebKit/Source/platform/heap/PersistentNode.h

Issue 1919663002: Unify and generalize thread static persistent finalization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: generalize clearing Created 4 years, 8 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: third_party/WebKit/Source/platform/heap/PersistentNode.h
diff --git a/third_party/WebKit/Source/platform/heap/PersistentNode.h b/third_party/WebKit/Source/platform/heap/PersistentNode.h
index ebaf0604edc31cd3090c6accc3988d1193c62ec1..7b94bbe75cd648efd4afae60c592ced48c85b665 100644
--- a/third_party/WebKit/Source/platform/heap/PersistentNode.h
+++ b/third_party/WebKit/Source/platform/heap/PersistentNode.h
@@ -139,6 +139,7 @@ public:
ASSERT(!node->isUnused());
return node;
}
+
void freePersistentNode(PersistentNode* persistentNode)
{
ASSERT(m_persistentCount > 0);
@@ -148,6 +149,8 @@ public:
--m_persistentCount;
#endif
}
+
+ void releasePersistentNode(PersistentNode*, ThreadState::PersistentClearCallback);
void tracePersistentNodes(Visitor*);
int numberOfPersistents();

Powered by Google App Engine
This is Rietveld 408576698