Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(123)

Issue 6245063: code review 6245063: runtime: handle windows exceptions, even in cgo programs (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 2 months ago by brainman
Modified:
13 years, 2 months ago
Reviewers:
CC:
golang-dev, kardia, rsc, hector, vcc
Visibility:
Public.

Description

runtime: handle windows exceptions, even in cgo programs Fixes issue 3543.

Patch Set 1 #

Patch Set 2 : diff -r ac7250065a04 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r ac7250065a04 https://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 4 : diff -r 2f24d335beeb https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -17 lines) Patch
M src/cmd/dist/buildruntime.c View 1 1 chunk +2 lines, -0 lines 0 comments Download
A src/pkg/runtime/crash_cgo_test.go View 1 1 chunk +15 lines, -0 lines 0 comments Download
A src/pkg/runtime/crash_test.go View 1 2 3 1 chunk +100 lines, -0 lines 0 comments Download
M src/pkg/runtime/os_windows.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/pkg/runtime/proc.c View 1 2 3 3 chunks +10 lines, -0 lines 0 comments Download
M src/pkg/runtime/rt0_windows_386.s View 1 1 chunk +0 lines, -5 lines 0 comments Download
M src/pkg/runtime/runtime.h View 1 3 chunks +7 lines, -0 lines 0 comments Download
M src/pkg/runtime/sys_windows_386.s View 1 3 chunks +17 lines, -10 lines 0 comments Download
M src/pkg/runtime/sys_windows_amd64.s View 1 2 chunks +5 lines, -2 lines 0 comments Download
M src/pkg/runtime/thread_windows.c View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4
brainman
Hello golang-dev@googlegroups.com (cc: hectorchu@gmail.com, vcc.163@gmail.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 2 months ago (2012-05-28 07:01:35 UTC) #1
kardia
Works for me on Win7 amd64. Thanks you Alex. On 2012/05/28 07:01:35, brainman wrote: > ...
13 years, 2 months ago (2012-05-28 17:05:32 UTC) #2
rsc
LGTM http://codereview.appspot.com/6245063/diff/3/src/pkg/runtime/crash_test.go File src/pkg/runtime/crash_test.go (right): http://codereview.appspot.com/6245063/diff/3/src/pkg/runtime/crash_test.go#newcode24 src/pkg/runtime/crash_test.go:24: const source = ` Please move this to ...
13 years, 2 months ago (2012-05-29 18:13:08 UTC) #3
brainman
13 years, 2 months ago (2012-05-30 05:11:09 UTC) #4
*** Submitted as http://code.google.com/p/go/source/detail?r=85e2b70e9d44 ***

runtime: handle windows exceptions, even in cgo programs

Fixes issue 3543.

R=golang-dev, kardianos, rsc
CC=golang-dev, hectorchu, vcc.163
http://codereview.appspot.com/6245063

http://codereview.appspot.com/6245063/diff/3/src/pkg/runtime/crash_test.go
File src/pkg/runtime/crash_test.go (right):

http://codereview.appspot.com/6245063/diff/3/src/pkg/runtime/crash_test.go#ne...
src/pkg/runtime/crash_test.go:24: const source = `
On 2012/05/29 18:13:08, rsc wrote:
> Please move this to be a global variable at the bottom of the file, maybe
named
> crashSource. It's hard to see the test function code with this other code
nested
> in the middle.

Done.

http://codereview.appspot.com/6245063/diff/3/src/pkg/runtime/proc.c
File src/pkg/runtime/proc.c (right):

http://codereview.appspot.com/6245063/diff/3/src/pkg/runtime/proc.c#newcode761
src/pkg/runtime/proc.c:761: SEH seh;	// It is used by windows-386 only.
Unfortunately, seh needs
On 2012/05/29 18:13:08, rsc wrote:
> Please move multiline comment above the variable declaration, instead of
> indenting on multiple lines.

Done.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b