To be precise, I want to know if the garbage-collection thread still runs if the program is started from C++ main-entry. I think a pure golang program will start the gc-thread before the 'func main(){}' but I don't know if it still holds true if the golang-part is only a static-library.
在 2017年9月13日星期三 UTC+8上午12:42:15,wolfk...@gmail.com写道: > > By using cgo, I wrappered some complex code written by golang into a > static-lib and call into the lib > from C++. > My question is: the process will run from a c++ main-entry. Will golang's > gc-background thread work in this way? I'm worried that the entry is from > C++ code and golang's vm-environment may not be complete so that gc won't > work and there will be memory-leaks. > -- 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.