Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/goPublic

Commitc6f639c

Browse files
committed
[release-branch.go1.3] runtime: ignore exceptions from foreign threads.
««« CL 104200046 / 14683b1cf2ccruntime: ignore exceptions from foreign threads.Fixes#8224.LGTM=alex.brainman, rscR=alex.brainman, rsc, daveCC=golang-codereviewshttps://golang.org/cl/104200046»»»LGTM=alex.brainman, minuxR=rsc, alex.brainman, minuxCC=golang-codereviewshttps://golang.org/cl/126010043
1 parent3fa4a78 commitc6f639c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

‎src/pkg/runtime/sys_windows_386.s‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ TEXT runtime·sigtramp(SB),NOSPLIT,$0-0
8888

8989
// fetch g
9090
get_tls(DX)
91+
CMPLDX,$0
92+
JNE3(PC)
93+
MOVL$0, AX// continue
94+
JMPdone
9195
MOVLm(DX), AX
9296
CMPLAX,$0
9397
JNE2(PC)
@@ -100,6 +104,7 @@ TEXT runtime·sigtramp(SB),NOSPLIT,$0-0
100104
CALLruntime·sighandler(SB)
101105
// AX is set to report result back to Windows
102106

107+
done:
103108
// restore callee-saved registers
104109
MOVL24(SP), DI
105110
MOVL20(SP), SI

‎src/pkg/runtime/sys_windows_amd64.s‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ TEXT runtime·sigtramp(SB),NOSPLIT,$0-0
120120

121121
// fetch g
122122
get_tls(DX)
123+
CMPQDX,$0
124+
JNE3(PC)
125+
MOVQ$0, AX// continue
126+
JMPdone
123127
MOVQm(DX), AX
124128
CMPQAX,$0
125129
JNE2(PC)
@@ -132,6 +136,7 @@ TEXT runtime·sigtramp(SB),NOSPLIT,$0-0
132136
CALLruntime·sighandler(SB)
133137
// AX is set to report result back to Windows
134138

139+
done:
135140
// restore registers as required for windows callback
136141
MOVQ24(SP), R15
137142
MOVQ32(SP), R14

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp