> Does Go GC destroy all global vars prior to the end of main() ? What do you expected to happen? it makes no sense GC do any work, at moment a process exits it's OS's job to unmmap allocated pages.
FWIW if race detector is enabled runtime does one thing before exit syscall is invoked: if provided exit code is 0 it overwrites the code to one defined by GORACE environment variable, defaulting to 66. BR. -- 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. For more options, visit https://groups.google.com/d/optout.