3 ms·
You can already do that: http://golang.org/pkg/runtime/ http://golang.org/pkg/runtime/
by jscheel 12y ago
You can already do that: http://golang.org/pkg/runtime/ http://golang.org/pkg/runtime/
- shanemhansen 12y agoThat's not useful for a kernel. You can disable garbage collection in go, but go doesn't provide the tools to disable creating garbage entirely. You can get really close to creating zero garbage through profiling and helping the compiler's escape analysis, but afaik the go spec makes no guarantees about stack vs heap allocation.
- pjmlp 12y ago> That's not useful for a kernel. Oberon Kernel.Mod, initial version 11.4.86 http://www.inf.ethz.ch/personal/wirth/ProjectOberon/Sources/Kernel.Mod.txt http://www.inf.ethz.ch/personal/wirth/ProjectOberon/Sources/...
- shanemhansen 12y agoI failed to see any references to the go runtime package in that link which leads me to believe you misunderstood my statement. Using the APIs documented in the go runtime package to disable garbage collection would not be an effective memory management strategy for a kernel.