Merge pull request #2116 from lightpanda-io/gc-snapshot

force an aggressive GC on v8 after snapshot creation
This commit is contained in:
Karl Seguin
2026-04-10 18:48:08 +08:00
committed by GitHub

View File

@@ -126,6 +126,7 @@ pub fn create() !Snapshot {
var data_start: usize = 0;
const isolate = v8.v8__SnapshotCreator__getIsolate(snapshot_creator).?;
defer v8.v8__Isolate__LowMemoryNotification(isolate);
{
// CreateBlob, which we'll call once everything is setup, MUST NOT