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

Issue 4977044: code review 4977044: runtime: implement exception handling on windows/amd64 (Closed)

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

Description

runtime: implement exception handling on windows/amd64 Fixes issue 2194.

Patch Set 1 #

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

Total comments: 5

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

Total comments: 8

Patch Set 4 : diff -r 68c83c6fed16 https://go.googlecode.com/hg/ #

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

Total comments: 6

Patch Set 6 : diff -r cc2d7633590e https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+243 lines, -5 lines) Patch
M src/cmd/ld/pe.c View 1 2 3 4 5 3 chunks +54 lines, -3 lines 0 comments Download
M src/pkg/runtime/windows/amd64/defs.h View 1 2 chunks +57 lines, -1 line 0 comments Download
M src/pkg/runtime/windows/amd64/signal.c View 1 2 1 chunk +88 lines, -1 line 0 comments Download
M src/pkg/runtime/windows/amd64/sys.s View 1 2 3 4 5 4 chunks +39 lines, -0 lines 0 comments Download
M src/pkg/runtime/windows/defs.c View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 27
hector
Hello rsc@golang.org, alex.brainman@gmail.com, vcc.163@gmail.com, jp@webmaster.ms (cc: golang-dev@googlegroups.com), I'd like you to review this change to ...
13 years, 10 months ago (2011-08-29 23:03:35 UTC) #1
jp
On 2011/08/29 23:03:35, hector wrote: Does it fix http://code.google.com/p/go/issues/detail?id=2194 ? > Hello mailto:rsc@golang.org, mailto:alex.brainman@gmail.com, mailto:vcc.163@gmail.com, ...
13 years, 10 months ago (2011-08-29 23:46:40 UTC) #2
vcc
Very nice, thanks for done this. http://codereview.appspot.com/4977044/diff/3001/src/pkg/runtime/amd64/asm.s File src/pkg/runtime/amd64/asm.s (right): http://codereview.appspot.com/4977044/diff/3001/src/pkg/runtime/amd64/asm.s#newcode451 src/pkg/runtime/amd64/asm.s:451: CALL runtime·setosstacklimits(SB) Should ...
13 years, 10 months ago (2011-08-30 02:28:45 UTC) #3
hector
It does. I've updated the description that it fixes the issue. On 30 August 2011 ...
13 years, 10 months ago (2011-08-30 08:11:04 UTC) #4
jp
Thanks! I would add tests with recover() after nil dereference and division to zero. Many ...
13 years, 10 months ago (2011-08-30 09:31:37 UTC) #5
hector
There are some existing tests that already cover exception handling and recover. For example see ...
13 years, 10 months ago (2011-08-30 11:21:41 UTC) #6
jp
Nobody run the tests from test directory on windows. Tests are skipped. Then the programmer ...
13 years, 10 months ago (2011-08-30 20:26:52 UTC) #7
hector
True. Personally I think we should enable those tests. With the exception handling support in ...
13 years, 10 months ago (2011-08-30 21:43:05 UTC) #8
brainman
On Wednesday, 31 August 2011 07:42:45 UTC+10, Hector Chu wrote: > > ... Personally I ...
13 years, 10 months ago (2011-08-30 23:32:50 UTC) #9
brainman
Could you, please, update your CL: # hg par changeset: 9601:070b7cc84e48 tag: tip # hg ...
13 years, 10 months ago (2011-08-30 23:56:37 UTC) #10
jp
http://codereview.appspot.com/4977044/diff/3001/src/pkg/runtime/windows/amd64/signal.c File src/pkg/runtime/windows/amd64/signal.c (right): http://codereview.appspot.com/4977044/diff/3001/src/pkg/runtime/windows/amd64/signal.c#newcode43 src/pkg/runtime/windows/amd64/signal.c:43: void *p = runtime·sigtramp; USED(p); otherwise the compiler warns
13 years, 10 months ago (2011-08-31 02:46:39 UTC) #11
hector
PTAL http://codereview.appspot.com/4977044/diff/3001/src/pkg/runtime/windows/amd64/signal.c File src/pkg/runtime/windows/amd64/signal.c (right): http://codereview.appspot.com/4977044/diff/3001/src/pkg/runtime/windows/amd64/signal.c#newcode43 src/pkg/runtime/windows/amd64/signal.c:43: void *p = runtime·sigtramp; On 2011/08/31 02:46:39, jp ...
13 years, 10 months ago (2011-08-31 09:31:04 UTC) #12
hector
For anyone that has been reviewing the code, I've just uploaded a small fix for ...
13 years, 10 months ago (2011-08-31 18:41:41 UTC) #13
brainman
Nice. Thank you. http://codereview.appspot.com/4977044/diff/15001/src/pkg/runtime/darwin/amd64/sys.s File src/pkg/runtime/darwin/amd64/sys.s (right): http://codereview.appspot.com/4977044/diff/15001/src/pkg/runtime/darwin/amd64/sys.s#newcode297 src/pkg/runtime/darwin/amd64/sys.s:297: TEXT runtime·setosstacklimits(SB),7,$0 Maybe define a macro ...
13 years, 10 months ago (2011-09-01 04:23:43 UTC) #14
brainman
On 2011/08/31 18:41:41, hector wrote: > For anyone that has been reviewing the code, I've ...
13 years, 10 months ago (2011-09-01 04:25:05 UTC) #15
jp
On 2011/08/31 18:41:41, hector wrote: > For anyone that has been reviewing the code, I've ...
13 years, 10 months ago (2011-09-01 04:55:44 UTC) #16
brainman
On 2011/09/01 04:55:44, jp wrote: > > Exceptions (or just panic call) inside callback functions ...
13 years, 10 months ago (2011-09-01 05:12:26 UTC) #17
hector
PTAL http://codereview.appspot.com/4977044/diff/15001/src/pkg/runtime/darwin/amd64/sys.s File src/pkg/runtime/darwin/amd64/sys.s (right): http://codereview.appspot.com/4977044/diff/15001/src/pkg/runtime/darwin/amd64/sys.s#newcode297 src/pkg/runtime/darwin/amd64/sys.s:297: TEXT runtime·setosstacklimits(SB),7,$0 On 2011/09/01 04:23:44, brainman wrote: > ...
13 years, 10 months ago (2011-09-01 07:28:01 UTC) #18
rsc
I am a little late to the party here, but is it strictly necessary to ...
13 years, 10 months ago (2011-09-01 19:22:33 UTC) #19
hector
It does appear to work per se, but then we'll need to disable dynamic stack ...
13 years, 10 months ago (2011-09-01 20:04:53 UTC) #20
hector
I've now reimplemented it along the lines suggested below, PTAL. On 1 September 2011 21:04, ...
13 years, 10 months ago (2011-09-01 21:28:00 UTC) #21
brainman
LGTM http://codereview.appspot.com/4977044/diff/2026/src/cmd/ld/pe.c File src/cmd/ld/pe.c (right): http://codereview.appspot.com/4977044/diff/2026/src/cmd/ld/pe.c#newcode645 src/cmd/ld/pe.c:645: set(SizeOfStackReserve, 0x00010000); Will 10K be enough for our ...
13 years, 10 months ago (2011-09-02 04:21:26 UTC) #22
vcc
LGTM
13 years, 10 months ago (2011-09-02 05:17:23 UTC) #23
hector
On 2 September 2011 05:21, <alex.brainman@gmail.com> wrote: > http://codereview.appspot.com/4977044/diff/2026/src/cmd/ld/pe.c#newcode645 > src/cmd/ld/pe.c:645: set(SizeOfStackReserve, 0x00010000); > Will ...
13 years, 10 months ago (2011-09-02 07:09:41 UTC) #24
hector
PTAL http://codereview.appspot.com/4977044/diff/2026/src/cmd/ld/pe.c File src/cmd/ld/pe.c (right): http://codereview.appspot.com/4977044/diff/2026/src/cmd/ld/pe.c#newcode645 src/cmd/ld/pe.c:645: set(SizeOfStackReserve, 0x00010000); On 2011/09/02 04:21:27, brainman wrote: > ...
13 years, 10 months ago (2011-09-02 07:34:49 UTC) #25
brainman
On 2011/09/02 07:34:49, hector wrote: > > 0x10000 is 64K in hex Of course it ...
13 years, 10 months ago (2011-09-03 08:26:56 UTC) #26
brainman
13 years, 10 months ago (2011-09-03 08:27:27 UTC) #27
*** Submitted as http://code.google.com/p/go/source/detail?r=3287b675eb64 ***

runtime: implement exception handling on windows/amd64

Fixes issue 2194.

R=rsc, alex.brainman, vcc.163, jp
CC=golang-dev
http://codereview.appspot.com/4977044

Committer: Alex Brainman <alex.brainman@gmail.com>
Sign in to reply to this message.

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