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

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

Issue 2602263002: Lend LSan a hand and clear out singleton static persistents first. (Closed)
Patch Set: experiment: disable LSan-GCing during shutdown.. Created 3 years, 12 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/ThreadState.h
diff --git a/third_party/WebKit/Source/platform/heap/ThreadState.h b/third_party/WebKit/Source/platform/heap/ThreadState.h
index 284a3de876ca52e6c0b12235a3698d34e5d7d520..f986f67ab0873800e9b4706ced7a94dfc51509fd 100644
--- a/third_party/WebKit/Source/platform/heap/ThreadState.h
+++ b/third_party/WebKit/Source/platform/heap/ThreadState.h
@@ -526,15 +526,16 @@ class PLATFORM_EXPORT ThreadState {
void freePersistentNode(PersistentNode*);
- using PersistentClearCallback = void (*)(void*);
+ enum ReleasePersistentMode { ClearPersistent, ReleasePersistent };
+ using PersistentClearCallback = void (*)(void*, ReleasePersistentMode);
void registerStaticPersistentNode(PersistentNode*, PersistentClearCallback);
- void releaseStaticPersistentNodes();
-
#if defined(LEAK_SANITIZER)
+ void clearStaticPersistentNodes();
void enterStaticReferenceRegistrationDisabledScope();
void leaveStaticReferenceRegistrationDisabledScope();
#endif
+ void releaseStaticPersistentNodes();
void resetHeapCounters();
void increaseAllocatedObjectSize(size_t);
« no previous file with comments | « third_party/WebKit/Source/platform/heap/PersistentNode.cpp ('k') | third_party/WebKit/Source/platform/heap/ThreadState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698