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

Unified Diff: third_party/WebKit/Source/wtf/Vector.h

Issue 1652953002: Make copyToVector() robust against conservative GCs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unnecessary 'template' use Created 4 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 | « third_party/WebKit/Source/wtf/HashSet.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/Vector.h
diff --git a/third_party/WebKit/Source/wtf/Vector.h b/third_party/WebKit/Source/wtf/Vector.h
index 73301493c4293be9d76ee4a646fb6204dc53b715..f1387c8dfd904efdfc4d79e240983af36e081e1f 100644
--- a/third_party/WebKit/Source/wtf/Vector.h
+++ b/third_party/WebKit/Source/wtf/Vector.h
@@ -805,6 +805,19 @@ public:
template <typename VisitorDispatcher> void trace(VisitorDispatcher);
+ class GCForbiddenScope {
+ STACK_ALLOCATED();
+ public:
+ GCForbiddenScope()
+ {
+ Allocator::enterGCForbiddenScope();
+ }
+ ~GCForbiddenScope()
+ {
+ Allocator::leaveGCForbiddenScope();
+ }
+ };
+
protected:
using Base::checkUnusedSlots;
using Base::clearUnusedSlots;
« no previous file with comments | « third_party/WebKit/Source/wtf/HashSet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698