WithGCThreshold will set the runtime's GC threshold; default is -1 to disable automatic GC.
(gcThreshold int64)
| 457 | |
| 458 | // WithGCThreshold will set the runtime's GC threshold; default is -1 to disable automatic GC. |
| 459 | func 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 |
| 466 | func WithMaxStackSize(maxStackSize uint64) Option { |
no outgoing calls