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

Function WithGCThreshold

runtime.go:459–463  ·  view source on GitHub ↗

WithGCThreshold will set the runtime's GC threshold; default is -1 to disable automatic GC.

(gcThreshold int64)

Source from the content-addressed store, hash-verified

457
458// WithGCThreshold will set the runtime's GC threshold; default is -1 to disable automatic GC.
459func WithGCThreshold(gcThreshold int64) Option {
460 return func(o *Options) {
461 o.gcThreshold = gcThreshold
462 }
463}
464
465// WithMaxStackSize will set max runtime's stack size; default is 0 disable maximum stack size check
466func WithMaxStackSize(maxStackSize uint64) Option {

Callers 2

TestRuntimeBasicsFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestRuntimeBasicsFunction · 0.68