]> Cypherpunks repositories - gostls13.git/commit
runtime: fix windows cpu profiler
authorDmitriy Vyukov <dvyukov@google.com>
Fri, 14 Feb 2014 05:20:51 +0000 (09:20 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Fri, 14 Feb 2014 05:20:51 +0000 (09:20 +0400)
commiteca55f5ac09221155de7b45e143ad863222ed976
tree8741539801cfc4d06316aa7078ad21f899a62109
parentab9e8d068aafce0df7edca629af0549b5f54d3c9
runtime: 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

R=rsc, alex.brainman
CC=golang-codereviews
https://golang.org/cl/63310043
src/pkg/runtime/os_windows.c
src/pkg/runtime/proc.c
src/pkg/runtime/sys_windows_386.s
src/pkg/runtime/sys_windows_amd64.s