aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/JSCUSocketsLoopIntegration.cpp
blob: f607d586ac53ee3396c1690f441310b8e50e8824 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include "root.h"
#include "JavaScriptCore/VM.h"

extern "C" void bun_on_tick_before(JSC::VM* vm)
{
    // Let the GC do some work while we are idle
    vm->heap.releaseAccess();
}
extern "C" void bun_on_tick_after(JSC::VM* vm)
{
    vm->heap.acquireAccess();
}