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

Issue 137410043: code review 137410043: runtime: assume precisestack, copystack, StackCopyAlway... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 7 months ago by rsc
Modified:
9 years, 7 months ago
Reviewers:
gobot, khr
CC:
khr, bradfitz, golang-codereviews, iant, r
Visibility:
Public.

Description

runtime: assume precisestack, copystack, StackCopyAlways, ScanStackByFrames Commit to stack copying for stack growth. We're carrying around a surprising amount of cruft from older schemes. I am confident that precise stack scans and stack copying are here to stay. Delete fallback code for when precise stack info is disabled. Delete fallback code for when copying stacks is disabled. Delete fallback code for when StackCopyAlways is disabled. Delete Stktop chain - there is only one stack segment now. Delete M.moreargp, M.moreargsize, M.moreframesize, M.cret. Delete G.writenbuf (unrelated, just dead). Delete runtime.lessstack, runtime.oldstack. Delete many amd64 morestack variants. Delete initialization of morestack frame/arg sizes (shortens split prologue!). Replace G's stackguard/stackbase/stack0/stacksize/ syscallstack/syscallguard/forkstackguard with simple stack bounds (lo, hi). Update liblink, runtime/cgo for adjustments to G.

Patch Set 1 #

Patch Set 2 : diff -r e2ec5172543b11bc559da2a7c36b65d9a9387dc1 https://code.google.com/p/go/ #

Patch Set 3 : diff -r e2ec5172543b11bc559da2a7c36b65d9a9387dc1 https://code.google.com/p/go/ #

Patch Set 4 : diff -r e2ec5172543b11bc559da2a7c36b65d9a9387dc1 https://code.google.com/p/go/ #

Patch Set 5 : diff -r e2ec5172543b11bc559da2a7c36b65d9a9387dc1 https://code.google.com/p/go/ #

Total comments: 12

Patch Set 6 : diff -r e2ec5172543b11bc559da2a7c36b65d9a9387dc1 https://code.google.com/p/go/ #

Patch Set 7 : diff -r 6402b5535fa87e9d119c0e1c3a8eedd2ca56fb9d https://code.google.com/p/go/ #

Patch Set 8 : diff -r 6402b5535fa87e9d119c0e1c3a8eedd2ca56fb9d https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+359 lines, -2894 lines) Patch
M include/link.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/cmd/dist/buildruntime.c View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/liblink/obj5.c View 1 2 3 chunks +3 lines, -27 lines 0 comments Download
M src/liblink/obj6.c View 1 2 10 chunks +16 lines, -170 lines 0 comments Download
M src/liblink/obj8.c View 1 2 6 chunks +7 lines, -32 lines 0 comments Download
M src/runtime/asm_386.s View 1 2 6 chunks +11 lines, -41 lines 0 comments Download
M src/runtime/asm_amd64.s View 1 2 9 chunks +19 lines, -155 lines 0 comments Download
M src/runtime/asm_amd64p32.s View 1 2 7 chunks +15 lines, -152 lines 0 comments Download
M src/runtime/asm_arm.s View 1 2 3 4 5 6 7 6 chunks +8 lines, -31 lines 0 comments Download
M src/runtime/cgo/gcc_darwin_386.c View 1 2 3 4 5 3 chunks +3 lines, -10 lines 0 comments Download
M src/runtime/cgo/gcc_darwin_amd64.c View 1 2 3 4 5 3 chunks +3 lines, -10 lines 0 comments Download
M src/runtime/cgo/gcc_dragonfly_386.c View 1 2 3 4 5 3 chunks +3 lines, -10 lines 0 comments Download
M src/runtime/cgo/gcc_dragonfly_amd64.c View 1 2 3 4 5 3 chunks +3 lines, -10 lines 0 comments Download
M src/runtime/cgo/gcc_freebsd_386.c View 1 2 3 4 5 3 chunks +3 lines, -10 lines 0 comments Download
M src/runtime/cgo/gcc_freebsd_amd64.c View 1 2 3 4 5 3 chunks +3 lines, -10 lines 0 comments Download
M src/runtime/cgo/gcc_freebsd_arm.c View 1 2 3 4 5 3 chunks +3 lines, -10 lines 0 comments Download
M src/runtime/cgo/gcc_linux_386.c View 1 2 3 4 5 3 chunks +3 lines, -10 lines 0 comments Download
M src/runtime/cgo/gcc_linux_amd64.c View 1 2 3 4 5 3 chunks +3 lines, -10 lines 0 comments Download
M src/runtime/cgo/gcc_linux_arm.c View 1 2 3 4 5 3 chunks +3 lines, -10 lines 0 comments Download
M src/runtime/cgo/gcc_netbsd_386.c View 1 2 3 4 5 3 chunks +3 lines, -10 lines 0 comments Download
M src/runtime/cgo/gcc_netbsd_amd64.c View 1 2 3 4 5 3 chunks +3 lines, -10 lines 0 comments Download
M src/runtime/cgo/gcc_netbsd_arm.c View 1 2 3 4 5 3 chunks +3 lines, -10 lines 0 comments Download
M src/runtime/cgo/gcc_openbsd_386.c View 1 2 3 4 5 3 chunks +3 lines, -10 lines 0 comments Download
M src/runtime/cgo/gcc_openbsd_amd64.c View 1 2 3 4 5 3 chunks +3 lines, -10 lines 0 comments Download
M src/runtime/cgo/gcc_windows_386.c View 1 2 chunks +3 lines, -3 lines 0 comments Download
M src/runtime/cgo/gcc_windows_amd64.c View 1 2 chunks +3 lines, -3 lines 0 comments Download
M src/runtime/cgo/libcgo.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/runtime/export_test.go View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/runtime/heapdump.c View 1 2 chunks +1 line, -3 lines 0 comments Download
M src/runtime/malloc.go View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M src/runtime/mgc0.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M src/runtime/mgc0.c View 1 2 chunks +2 lines, -41 lines 0 comments Download
M src/runtime/os_darwin.c View 1 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/os_dragonfly.c View 1 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/os_freebsd.c View 1 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/os_linux.c View 1 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/os_nacl.c View 1 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/os_netbsd.c View 1 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/os_openbsd.c View 1 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/os_solaris.c View 1 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/panic.c View 1 2 chunks +5 lines, -30 lines 0 comments Download
M src/runtime/proc.c View 1 27 chunks +68 lines, -88 lines 0 comments Download
M src/runtime/runtime.h View 1 2 11 chunks +31 lines, -41 lines 0 comments Download
M src/runtime/stack.h View 1 2 chunks +1 line, -5 lines 0 comments Download
M src/runtime/stack.c View 1 2 3 26 chunks +105 lines, -278 lines 0 comments Download
R src/runtime/stack_gen_test.go View 1 1 chunk +0 lines, -1473 lines 0 comments Download
M src/runtime/stack_test.go View 1 1 chunk +0 lines, -54 lines 0 comments Download
M src/runtime/stubs.go View 1 1 chunk +0 lines, -1 line 0 comments Download
M src/runtime/traceback.go View 1 6 chunks +1 line, -37 lines 0 comments Download
R src/runtime/traceback_windows.go View 1 1 chunk +0 lines, -63 lines 0 comments Download

Messages

Total messages: 7
rsc
Hello khr (cc: golang-codereviews@googlegroups.com, iant, r), I'd like you to review this change to https://code.google.com/p/go/
9 years, 7 months ago (2014-09-09 04:59:16 UTC) #1
bradfitz
On Mon, Sep 8, 2014 at 9:59 PM, <rsc@golang.org> wrote: > > Affected files (+334, ...
9 years, 7 months ago (2014-09-09 05:17:04 UTC) #2
rsc
On Tue, Sep 9, 2014 at 1:17 AM, Brad Fitzpatrick <bradfitz@golang.org> wrote: > On Mon, ...
9 years, 7 months ago (2014-09-09 11:23:12 UTC) #3
khr
LGTM. https://codereview.appspot.com/137410043/diff/80001/src/runtime/asm_amd64.s File src/runtime/asm_amd64.s (left): https://codereview.appspot.com/137410043/diff/80001/src/runtime/asm_amd64.s#oldcode264 src/runtime/asm_amd64.s:264: // Caller has already done get_tls(CX); MOVQ m(CX), ...
9 years, 7 months ago (2014-09-09 15:56:03 UTC) #4
rsc
https://codereview.appspot.com/137410043/diff/80001/src/runtime/asm_amd64.s File src/runtime/asm_amd64.s (left): https://codereview.appspot.com/137410043/diff/80001/src/runtime/asm_amd64.s#oldcode264 src/runtime/asm_amd64.s:264: // Caller has already done get_tls(CX); MOVQ m(CX), BX. ...
9 years, 7 months ago (2014-09-09 16:13:55 UTC) #5
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=faa4ad687ab9 *** runtime: assume precisestack, copystack, StackCopyAlways, ScanStackByFrames Commit to stack copying ...
9 years, 7 months ago (2014-09-09 17:40:04 UTC) #6
gobot
9 years, 7 months ago (2014-09-09 17:42:14 UTC) #7
Message was sent while issue was closed.
This CL appears to have broken the windows-amd64 builder.
See http://build.golang.org/log/eb8c04940c1fdcccfd77e74a02a7a7f78edfab2f
Sign in to reply to this message.

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