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

Unified Diff: Source/web/WebLocalFrameImpl.h

Issue 1268103003: Oilpan: have WebLocalFrameImpl use SelfKeepAlive<>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: improve/shorten comment Created 5 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebLocalFrameImpl.h
diff --git a/Source/web/WebLocalFrameImpl.h b/Source/web/WebLocalFrameImpl.h
index 498eca0c017c66f98023d716fc746875d4438f31..6bbf07eef7ae45097b6709d12d67ce9167a0a376 100644
--- a/Source/web/WebLocalFrameImpl.h
+++ b/Source/web/WebLocalFrameImpl.h
@@ -395,14 +395,10 @@ private:
HashMap<AtomicString, OwnPtr<WebTestInterfaceFactory>> m_testInterfaces;
#if ENABLE(OILPAN)
- // Oilpan: to provide the guarantee of having the frame live until
- // close() is called, an instance keep a self-persistent. It is
- // cleared upon calling close(). This avoids having to assume that
- // an embedder's WebFrame references are all discovered via thread
- // state (stack, registers) should an Oilpan GC strike while we're
- // in the process of detaching.
- GC_PLUGIN_IGNORE("340522")
- Persistent<WebLocalFrameImpl> m_selfKeepAlive;
+ // Oilpan: WebLocalFrameImpl must remain alive until close() is called.
+ // Accomplish that by keeping a self-referential Persistent<>. It is
+ // cleared upon close().
+ SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive;
#endif
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698