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

Issue 3787046: code review 3787046: runtime: revert 6974:1f3c3696babb (Closed)

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

Description

runtime: revert 6974:1f3c3696babb I missed that environment is used during runtime setup, well before go init() functions run. Implemented os-dependent runtime.goenvs functions to allow for different unix, plan9 and windows versions of environment discovery.

Patch Set 1 #

Patch Set 2 : code review 3787046: runtime: revert 6974:1f3c3696babb #

Total comments: 2

Patch Set 3 : code review 3787046: runtime: revert 6974:1f3c3696babb #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -20 lines) Patch
M src/pkg/os/env_windows.go View 1 chunk +0 lines, -1 line 0 comments Download
M src/pkg/runtime/darwin/thread.c View 1 chunk +6 lines, -0 lines 0 comments Download
M src/pkg/runtime/freebsd/thread.c View 1 chunk +6 lines, -0 lines 0 comments Download
M src/pkg/runtime/linux/thread.c View 1 chunk +6 lines, -0 lines 0 comments Download
M src/pkg/runtime/plan9/thread.c View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/pkg/runtime/proc.c View 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/runtime/runtime.h View 3 chunks +4 lines, -0 lines 0 comments Download
M src/pkg/runtime/runtime.c View 1 chunk +21 lines, -19 lines 0 comments Download
M src/pkg/runtime/string.goc View 2 chunks +30 lines, -0 lines 0 comments Download
M src/pkg/runtime/tiny/thread.c View 1 chunk +6 lines, -0 lines 0 comments Download
M src/pkg/runtime/windows/thread.c View 1 chunk +36 lines, -0 lines 0 comments Download

Messages

Total messages: 16
brainman
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 2 months ago (2011-01-05 00:05:10 UTC) #1
brainman
Sorry, Russ, I'm back to it again, but it was wishful thinking on my part ...
14 years, 2 months ago (2011-01-05 00:05:44 UTC) #2
paulzhol
On 2011/01/05 00:05:44, brainman wrote: > Sorry, Russ, I'm back to it again, but it ...
14 years, 2 months ago (2011-01-05 21:35:32 UTC) #3
paulzhol
from runtime·getenv that is.
14 years, 2 months ago (2011-01-05 21:44:36 UTC) #4
brainman
On 2011/01/05 21:35:32, paulzhol wrote: > Maybe you don't have to revert your changes - ...
14 years, 2 months ago (2011-01-06 06:01:17 UTC) #5
paulzhol
All I was saying is that because runtime.getenv is called a few times, you don't ...
14 years, 2 months ago (2011-01-06 10:49:07 UTC) #6
brainman
On 2011/01/06 10:49:07, paulzhol wrote: > ... You can just call GetEnvironmentVariable from runtime.getenv to ...
14 years, 2 months ago (2011-01-06 22:36:00 UTC) #7
brainman
On 2011/01/06 22:36:00, brainman wrote: > On 2011/01/06 10:49:07, paulzhol wrote: > > ... > ...
14 years, 2 months ago (2011-01-10 04:51:41 UTC) #8
paulzhol
On 2011/01/10 04:51:41, brainman wrote: > I tried to change the code as you've suggested ...
14 years, 2 months ago (2011-01-10 07:49:44 UTC) #9
brainman
On 2011/01/10 07:49:44, paulzhol wrote: > Maybe a fixed size os.Envs can be allocated in ...
14 years, 2 months ago (2011-01-10 09:52:34 UTC) #10
paulzhol
On 2011/01/10 09:52:34, brainman wrote: > I was thinking about it, but then we should ...
14 years, 2 months ago (2011-01-10 10:19:20 UTC) #11
brainman
On 2011/01/10 10:19:20, paulzhol wrote: > Do you need to worry about concurrent updates from ...
14 years, 2 months ago (2011-01-10 12:41:23 UTC) #12
paulzhol
On 2011/01/10 12:41:23, brainman wrote: > On 2011/01/10 10:19:20, paulzhol wrote: > > Do you ...
14 years, 2 months ago (2011-01-10 14:33:45 UTC) #13
rsc
LGTM http://codereview.appspot.com/3787046/diff/2001/src/pkg/runtime/plan9/thread.c File src/pkg/runtime/plan9/thread.c (right): http://codereview.appspot.com/3787046/diff/2001/src/pkg/runtime/plan9/thread.c#newcode23 src/pkg/runtime/plan9/thread.c:23: extern Slice os·Envs; These are the default settings ...
14 years, 2 months ago (2011-01-11 16:23:56 UTC) #14
brainman
*** Submitted as http://code.google.com/p/go/source/detail?r=883639139011 *** runtime: revert 6974:1f3c3696babb I missed that environment is used during ...
14 years, 2 months ago (2011-01-12 00:48:22 UTC) #15
brainman
14 years, 2 months ago (2011-01-12 00:48:33 UTC) #16
Thank you for review.
Sign in to reply to this message.

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