MCPcopy Create free account
hub / github.com/buke/quickjs-go / RunGC

Method RunGC

runtime.go:567–580  ·  view source on GitHub ↗

RunGC will call quickjs's garbage collector.

()

Source from the content-addressed store, hash-verified

565
566// RunGC will call quickjs's garbage collector.
567func (r *Runtime) RunGC() {
568 if r == nil {
569 return
570 }
571 if !r.ensureOwnerAccess() {
572 return
573 }
574 r.mu.RLock()
575 defer r.mu.RUnlock()
576 if r.closed.Load() || r.ref == nil {
577 return
578 }
579 C.JS_RunGC(r.ref)
580}
581
582// SetAwaitPollSliceMs configures AwaitValue idle poll slice duration in milliseconds.
583// Values <= 0 are ignored.

Calls 2

ensureOwnerAccessMethod · 0.95
LoadMethod · 0.80