With this change memory/mutex profiles stack depth is increased to 128.
Unfortunately, this does not affect runtime.MemProfile and runtime.MutexProfile , these APIs still return truncated stacks. It looks like there were some attempts to fix them, however they did not make it to the final patchset.
Even more unfortunately, but it looks like there is no other way but to link into blockProfileInternalmemProfileInternal which is not great, especially in the light of https://github.com/golang/go/issues/67401
With this change memory/mutex profiles stack depth is increased to 128.
Unfortunately, this does not affect
runtime.MemProfile
andruntime.MutexProfile
, these APIs still return truncated stacks. It looks like there were some attempts to fix them, however they did not make it to the final patchset.Even more unfortunately, but it looks like there is no other way but to link into
blockProfileInternal
memProfileInternal
which is not great, especially in the light of https://github.com/golang/go/issues/67401