The code from Russ Cox's article (https://research.swtch.com/gorace) no longer works with the modern Go compiler, because the compiler does a better job of removing redundant operations.
But here is minimal (?) working code to read/write bytes at arbitrary addresses without importing unsafe: https://bugfix-66.com/142fe84d7400a941ca0a1122096aaa300347e9180f567e373f21a1f2d0d22617 With today's Go runtime, if GOMAXPROCS equals 1, does that prevent this circumvention? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/a7d8887a-012f-49b6-bb69-62467de86efbn%40googlegroups.com.