Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

i'd guess a negative arg passed to https://golang.org/pkg/runtime/debug/#SetGCPercent


I hope not, because this way a critical section requires two non-concurrent GCs (SetGCPercent calls runtime.GC() [1] and runtime.GC() triggers a non-concurrent GC [2]).

If this is the option, I hope the critical sections in ntpsec are few and far apart...

[1] https://golang.org/src/runtime/debug/garbage.go?s=3706:3740#...

[2] https://golang.org/src/runtime/mgc.go?s=33685:33694#L844




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: