Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 8834b49c57beb049407ab95b38aa1d33c4ac272a..7f4ebebcd2cd40ae5252925c55df703813a19d70 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -5490,6 +5490,15 @@ class V8_EXPORT Isolate { |
void Dispose(); |
/** |
+ * Discards all V8 thread-specific data for the Isolate. Should be used |
+ * if a thread is terminating and it has used an Isolate that will outlive |
+ * the thread -- all thread-specific data for an Isolate is discarded when |
+ * an Isolate is disposed so this call is pointless if an Isolate is about |
+ * to be Disposed. |
+ */ |
+ void DiscardThreadSpecificMetadata(); |
+ |
+ /** |
* Associate embedder-specific data with the isolate. |slot| has to be |
* between 0 and GetNumberOfDataSlots() - 1. |
*/ |