Descriptionruntime: fix windows cpu profiler
Currently it periodically fails with the following message.
The immediate cause is the wrong base register when obtaining g
in sys_windows_amd64/386.s.
But there are several secondary problems as well.
runtime: unknown pc 0x0 after stack split
panic: invalid memory address or nil pointer dereference
fatal error: panic during malloc
[signal 0xc0000005 code=0x0 addr=0x60 pc=0x42267a]
runtime stack:
runtime.panic(0x7914c0, 0xc862af)
c:/src/perfer/work/windows-amd64-a15f344a9efa/go/src/pkg/runtime/panic.c:217 +0x2c
runtime: unexpected return pc for runtime.externalthreadhandler called from 0x0
Patch Set 1 #Patch Set 2 : diff -r c3319d654b61 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 3 : diff -r c3319d654b61 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 4 : diff -r c3319d654b61 https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 5 : diff -r 1924b7e9adf5 https://dvyukov%40google.com@code.google.com/p/go/ #
MessagesTotal messages: 4
|