Title: [230961] trunk/Source/_javascript_Core
- Revision
- 230961
- Author
- [email protected]
- Date
- 2018-04-24 10:32:44 -0700 (Tue, 24 Apr 2018)
Log Message
Update API docs with information on which run loop the VM will use
https://bugs.webkit.org/show_bug.cgi?id=184900
<rdar://problem/39166054>
Reviewed by Mark Lam.
* API/JSContextRef.h:
* API/JSVirtualMachine.h:
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/API/JSContextRef.h (230960 => 230961)
--- trunk/Source/_javascript_Core/API/JSContextRef.h 2018-04-24 17:17:42 UTC (rev 230960)
+++ trunk/Source/_javascript_Core/API/JSContextRef.h 2018-04-24 17:32:44 UTC (rev 230961)
@@ -46,6 +46,11 @@
_javascript_ objects between contexts in different groups will produce undefined behavior.
When objects from the same context group are used in multiple threads, explicit
synchronization is required.
+
+ A JSContextGroup may need to run deferred tasks on a run loop, such as garbage collection
+ or resolving WebAssembly compilations. By default, calling JSContextGroupCreate will use
+ the run loop of the thread it was called on. Currently, there is no API to change a
+ JSContextGroup's run loop once it has been created.
@result The created JSContextGroup.
*/
JS_EXPORT JSContextGroupRef JSContextGroupCreate(void) CF_AVAILABLE(10_6, 7_0);
Modified: trunk/Source/_javascript_Core/API/JSVirtualMachine.h (230960 => 230961)
--- trunk/Source/_javascript_Core/API/JSVirtualMachine.h 2018-04-24 17:17:42 UTC (rev 230960)
+++ trunk/Source/_javascript_Core/API/JSVirtualMachine.h 2018-04-24 17:32:44 UTC (rev 230961)
@@ -33,6 +33,11 @@
or set of execution resources. Thread safety is supported by locking the
virtual machine, with concurrent _javascript_ execution supported by allocating
separate instances of JSVirtualMachine.
+
+ A virtual machine may need to run deferred tasks on a run loop, such as garbage collection
+ or resolving WebAssembly compilations. By default, a virtual machine will use the run loop
+ of the thread it was initialized on. Currently, there is no API to change a
+ JSVirtualMachine's run loop once it has been initialized.
*/
NS_CLASS_AVAILABLE(10_9, 7_0)
@interface JSVirtualMachine : NSObject
Modified: trunk/Source/_javascript_Core/ChangeLog (230960 => 230961)
--- trunk/Source/_javascript_Core/ChangeLog 2018-04-24 17:17:42 UTC (rev 230960)
+++ trunk/Source/_javascript_Core/ChangeLog 2018-04-24 17:32:44 UTC (rev 230961)
@@ -1,3 +1,14 @@
+2018-04-24 Keith Miller <[email protected]>
+
+ Update API docs with information on which run loop the VM will use
+ https://bugs.webkit.org/show_bug.cgi?id=184900
+ <rdar://problem/39166054>
+
+ Reviewed by Mark Lam.
+
+ * API/JSContextRef.h:
+ * API/JSVirtualMachine.h:
+
2018-04-24 Filip Pizlo <[email protected]>
$vm.totalGCTime() should be a thing
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes