Skip to content

Commit

Permalink
Fixes #14982
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Nov 11, 2024
1 parent b49f6d1 commit d713001
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/bun.js/bindings/BunJSCEventLoop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,19 @@

extern "C" int Bun__JSC_onBeforeWait(JSC::VM* vm)
{
if (vm->heap.hasAccess()) {
vm->heap.releaseAccess();
return 1;
}
UNUSED_PARAM(vm);
// TODO: use JSC timers, run the incremental sweeper.
// That will fix this.
// In the meantime, we're disabling this due to https://github.com/oven-sh/bun/issues/14982
// if (vm->heap.hasAccess()) {
// vm->heap.releaseAccess();
// return 1;
// }
return 0;
}

extern "C" void Bun__JSC_onAfterWait(JSC::VM* vm)
{
vm->heap.acquireAccess();
UNUSED_PARAM(vm);
// vm->heap.acquireAccess();
}

0 comments on commit d713001

Please sign in to comment.