diff options
author | 2023-08-12 13:51:03 -0700 | |
---|---|---|
committer | 2023-08-12 13:51:03 -0700 | |
commit | 78defe7a87226b5b10766e24fae458a62811dab2 (patch) | |
tree | 6f81506a5556ec42c3bfc0b6333ada390bf92d1a /src/bun.js/bindings/bindings.cpp | |
parent | b94433ce86017dccb2e13070dcba57c11421c3ce (diff) | |
download | bun-78defe7a87226b5b10766e24fae458a62811dab2.tar.gz bun-78defe7a87226b5b10766e24fae458a62811dab2.tar.zst bun-78defe7a87226b5b10766e24fae458a62811dab2.zip |
Fix worker event loop ref/unref + leak (#4114)
* make more tests pass
* worker changes
* fix some bugs
* remove this
* progress
* uh
* okay
* remove console log
* a
* comment assert for later
* mergable state
* remove test
* remove test
Diffstat (limited to 'src/bun.js/bindings/bindings.cpp')
-rw-r--r-- | src/bun.js/bindings/bindings.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bun.js/bindings/bindings.cpp b/src/bun.js/bindings/bindings.cpp index 201fc0959..f7998c83c 100644 --- a/src/bun.js/bindings/bindings.cpp +++ b/src/bun.js/bindings/bindings.cpp @@ -3901,6 +3901,12 @@ bool JSC__VM__isEntered(JSC__VM* arg0) { return (*arg0).isEntered(); } void JSC__VM__setExecutionForbidden(JSC__VM* arg0, bool arg1) { (*arg0).setExecutionForbidden(); } +// These may be called concurrently from another thread. +void JSC__VM__notifyNeedTermination(JSC__VM* arg0) { (*arg0).notifyNeedTermination(); } +void JSC__VM__notifyNeedDebuggerBreak(JSC__VM* arg0) { (*arg0).notifyNeedDebuggerBreak(); } +void JSC__VM__notifyNeedShellTimeoutCheck(JSC__VM* arg0) { (*arg0).notifyNeedShellTimeoutCheck(); } +void JSC__VM__notifyNeedWatchdogCheck(JSC__VM* arg0) { (*arg0).notifyNeedWatchdogCheck(); } + void JSC__VM__throwError(JSC__VM* vm_, JSC__JSGlobalObject* arg1, JSC__JSValue value) { JSC::VM& vm = *reinterpret_cast<JSC::VM*>(vm_); |