Content-Length: 264923 | pFad | http://github.com/golang/go/commit/c6f639cdf6e3739e25896447f8902899568b5402

4E [release-branch.go1.3] runtime: ignore exceptions from foreign threads. · golang/go@c6f639c · GitHub
Skip to content

Commit

Permalink
[release-branch.go1.3] runtime: ignore exceptions from foreign threads.
Browse files Browse the repository at this point in the history
««« CL 104200046 / 14683b1cf2cc
runtime: ignore exceptions from foreign threads.
Fixes #8224.

LGTM=alex.brainman, rsc
R=alex.brainman, rsc, dave
CC=golang-codereviews
https://golang.org/cl/104200046
»»»

LGTM=alex.brainman, minux
R=rsc, alex.brainman, minux
CC=golang-codereviews
https://golang.org/cl/126010043
  • Loading branch information
adg committed Aug 12, 2014
1 parent 3fa4a78 commit c6f639c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pkg/runtime/sys_windows_386.s
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ TEXT runtime·sigtramp(SB),NOSPLIT,$0-0

// fetch g
get_tls(DX)
CMPL DX, $0
JNE 3(PC)
MOVL $0, AX // continue
JMP done
MOVL m(DX), AX
CMPL AX, $0
JNE 2(PC)
Expand All @@ -100,6 +104,7 @@ TEXT runtime·sigtramp(SB),NOSPLIT,$0-0
CALL runtime·sighandler(SB)
// AX is set to report result back to Windows

done:
// restore callee-saved registers
MOVL 24(SP), DI
MOVL 20(SP), SI
Expand Down
5 changes: 5 additions & 0 deletions src/pkg/runtime/sys_windows_amd64.s
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ TEXT runtime·sigtramp(SB),NOSPLIT,$0-0

// fetch g
get_tls(DX)
CMPQ DX, $0
JNE 3(PC)
MOVQ $0, AX // continue
JMP done
MOVQ m(DX), AX
CMPQ AX, $0
JNE 2(PC)
Expand All @@ -132,6 +136,7 @@ TEXT runtime·sigtramp(SB),NOSPLIT,$0-0
CALL runtime·sighandler(SB)
// AX is set to report result back to Windows

done:
// restore registers as required for windows callback
MOVQ 24(SP), R15
MOVQ 32(SP), R14
Expand Down

0 comments on commit c6f639c

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/golang/go/commit/c6f639cdf6e3739e25896447f8902899568b5402

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy