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

Issue 167055: code review 167055: Fix stack on FreeBSD / add stack check across the board (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 7 months ago by dho
Modified:
15 years, 7 months ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

Fix stack on FreeBSD / add stack check across the board FreeBSD was passing stk as the new thread's stack base, while stk is the top of the stack in go. The added check should cause a trap if this ever comes up in any new ports, or regresses in current ones.

Patch Set 1 #

Patch Set 2 : code review 167055: Fix stack on FreeBSD / add stack check across the board #

Total comments: 7

Patch Set 3 : code review 167055: Fix stack on FreeBSD / add stack check across the board #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -10 lines) Patch
M src/pkg/runtime/386/asm.s View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M src/pkg/runtime/amd64/asm.s View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M src/pkg/runtime/darwin/386/sys.s View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/runtime/darwin/amd64/sys.s View 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/runtime/freebsd/386/sys.s View 1 2 2 chunks +9 lines, -8 lines 0 comments Download
M src/pkg/runtime/freebsd/amd64/sys.s View 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/runtime/freebsd/thread.c View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/runtime/linux/386/sys.s View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/runtime/linux/amd64/sys.s View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5
dho
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review the following change.
15 years, 7 months ago (2009-12-08 23:56:53 UTC) #1
rsc
looks pretty good http://codereview.appspot.com/167055/diff/11/12 File src/pkg/runtime/386/asm.s (right): http://codereview.appspot.com/167055/diff/11/12#newcode329 src/pkg/runtime/386/asm.s:329: CMPL 0(AX), SP g_stackbase http://codereview.appspot.com/167055/diff/11/12#newcode332 src/pkg/runtime/386/asm.s:332: ...
15 years, 7 months ago (2009-12-09 00:37:30 UTC) #2
dho
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review the following change.
15 years, 7 months ago (2009-12-09 00:44:22 UTC) #3
rsc
LGTM thanks
15 years, 7 months ago (2009-12-09 00:52:14 UTC) #4
rsc
15 years, 7 months ago (2009-12-09 02:19:32 UTC) #5
*** Submitted as http://code.google.com/p/go/source/detail?r=c3a343e57091 ***

Fix stack on FreeBSD / add stack check across the board

FreeBSD was passing stk as the new thread's stack base, while
stk is the top of the stack in go. The added check should cause
a trap if this ever comes up in any new ports, or regresses
in current ones.

R=rsc
CC=golang-dev
http://codereview.appspot.com/167055

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

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