Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index c56295ac78dd8a4c6561f97f12717e5972381520..5b311c4a57027a91a84276e9548bb0b686332f79 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -3973,6 +3973,15 @@ class V8_EXPORT Isolate { |
}; |
/** |
+ * Types of garbage collections that can be requested via |
+ * RequestGarbageCollection. |
+ */ |
+ enum GarbageCollectionType { |
+ kFullGarbageCollection, |
+ kMinorGarbageCollection |
+ }; |
+ |
+ /** |
* Creates a new isolate. Does not change the currently entered |
* isolate. |
* |
@@ -4184,6 +4193,12 @@ class V8_EXPORT Isolate { |
*/ |
void ClearInterrupt(); |
+ /** |
+ * Request garbage collection in this Isolate. If |minor| is true, a |
+ * minor garbage collection is performed. |
+ */ |
+ void RequestGarbageCollection(GarbageCollectionType type); |
Michael Starzinger
2014/01/13 10:13:24
I don't like exposing this through the API at all.
|
+ |
private: |
Isolate(); |
Isolate(const Isolate&); |