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

Issue 7560048: code review 7560048: runtime: pass setmg function to cgo_init (Closed)

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

Description

runtime: pass setmg function to cgo_init This keeps the logic about how to set the thread-local variables m and g in code compiled and linked by the gc toolchain, an important property for upcoming cgo changes. It's also just a nice cleanup: one less place to update when these details change.

Patch Set 1 #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -76 lines) Patch
M src/pkg/runtime/asm_386.s View 1 2 chunks +11 lines, -0 lines 0 comments Download
M src/pkg/runtime/asm_amd64.s View 1 2 chunks +8 lines, -0 lines 0 comments Download
M src/pkg/runtime/cgo/gcc_freebsd_386.c View 1 2 chunks +5 lines, -9 lines 0 comments Download
M src/pkg/runtime/cgo/gcc_freebsd_amd64.c View 1 2 chunks +6 lines, -10 lines 0 comments Download
M src/pkg/runtime/cgo/gcc_linux_386.c View 1 2 chunks +5 lines, -12 lines 0 comments Download
M src/pkg/runtime/cgo/gcc_linux_amd64.c View 1 2 chunks +6 lines, -9 lines 0 comments Download
M src/pkg/runtime/cgo/gcc_netbsd_386.c View 1 2 chunks +5 lines, -9 lines 0 comments Download
M src/pkg/runtime/cgo/gcc_netbsd_amd64.c View 1 2 chunks +6 lines, -9 lines 0 comments Download
M src/pkg/runtime/cgo/gcc_openbsd_386.c View 1 3 chunks +5 lines, -9 lines 0 comments Download
M src/pkg/runtime/cgo/gcc_openbsd_amd64.c View 1 3 chunks +6 lines, -9 lines 0 comments Download

Messages

Total messages: 3
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
12 years ago (2013-03-25 21:39:03 UTC) #1
r
LGTM
12 years ago (2013-03-25 21:46:00 UTC) #2
rsc
12 years ago (2013-03-25 22:14:11 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=2bc153c7d415 ***

runtime: pass setmg function to cgo_init

This keeps the logic about how to set the thread-local variables
m and g in code compiled and linked by the gc toolchain,
an important property for upcoming cgo changes.

It's also just a nice cleanup: one less place to update when
these details change.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/7560048
Sign in to reply to this message.

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