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

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

Issue 2701623003: Remove BlinkGCInterruptor (Closed)
Patch Set: Created 3 years, 10 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/BlinkGCInterruptor.h
diff --git a/third_party/WebKit/Source/platform/heap/BlinkGCInterruptor.h b/third_party/WebKit/Source/platform/heap/BlinkGCInterruptor.h
deleted file mode 100644
index 3b1a1fe4c73c3cd51cba05ce71b7bbe24ff7c1fa..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/platform/heap/BlinkGCInterruptor.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef BlinkGCInterruptor_h
-#define BlinkGCInterruptor_h
-
-#include "platform/PlatformExport.h"
-#include "wtf/Allocator.h"
-
-namespace blink {
-
-// If attached thread enters long running loop that can call back
-// into Blink and leaving and reentering safepoint at every
-// transition between this loop and Blink is deemed too expensive
-// then instead of marking this loop as a GC safepoint thread
-// can provide an interruptor object which would allow GC
-// to temporarily interrupt and pause this long running loop at
-// an arbitrary moment creating a safepoint for a GC.
-class PLATFORM_EXPORT BlinkGCInterruptor {
- USING_FAST_MALLOC(BlinkGCInterruptor);
-
- public:
- virtual ~BlinkGCInterruptor() {}
-
- // Request the interruptor to interrupt the thread and
- // call onInterrupted on that thread once interruption
- // succeeds.
- virtual void requestInterrupt() = 0;
-
- protected:
- // This method is called on the interrupted thread to
- // create a safepoint for a GC.
- void onInterrupted();
-};
-
-} // namespace blink
-
-#endif
« no previous file with comments | « third_party/WebKit/Source/platform/heap/BUILD.gn ('k') | third_party/WebKit/Source/platform/heap/BlinkGCInterruptor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698