Hi, I have few questions out of curiosity.

1. Is there any noticeable benchmark difference between internal linking 
and external linking?
  IIUC, when I use external linking, runtime/cgo is used for OS thread 
creation. In that case Go doesn't allocate the system stack itself.
  So, I assume there are some difference related to memory usage. Can I see 
some benchmark result if any?

2. Is runtime.newosproc0 reachable?
  IIUC, newosproc0 is called by _rt0_$GOARCH_$GOOS_lib if runtime/cgo is 
not used.
  However, _rt0_$GOARCH_$GOOS_lib is invoked only if buildmode=c-shared or 
buildmode=c-archive.
  In addition, c-shared and c-archive always use external linking. When is 
newosproc0 actually called?

Thanks,

Hiroshi

-- 
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.

Reply via email to