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

Issue 5966067: code review 5966067: runtime: give proper messages when user defined DYLD_IN... (Closed)

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

Description

runtime: give proper messages when user defined DYLD_INSERT_LIBRARIES on Darwin also gives clear error when bsdthread_register fails on Darwin Fixes issue 2992.

Patch Set 1 #

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

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

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

Total comments: 1

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

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

Total comments: 1

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -10 lines) Patch
M src/pkg/runtime/os_darwin.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/sys_darwin_386.s View 1 1 chunk +4 lines, -2 lines 0 comments Download
M src/pkg/runtime/sys_darwin_amd64.s View 1 1 chunk +4 lines, -2 lines 0 comments Download
M src/pkg/runtime/thread_darwin.c View 1 2 3 4 5 6 2 chunks +14 lines, -5 lines 0 comments Download

Messages

Total messages: 12
minux1
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
14 years, 2 months ago (2012-04-04 17:12:00 UTC) #1
minux1
If you want to trigger the error message. $ cat lib.c #include <stdio.h> int f() ...
14 years, 2 months ago (2012-04-04 17:13:51 UTC) #2
rsc
Can we just check for the environment variable instead? I try to avoid error messages ...
14 years, 2 months ago (2012-04-04 17:24:55 UTC) #3
minux1
On 2012/04/04 17:24:55, rsc wrote: > Can we just check for the environment variable instead? ...
14 years, 2 months ago (2012-04-04 18:14:31 UTC) #4
rsc
http://codereview.appspot.com/5966067/diff/3006/src/pkg/runtime/thread_darwin.c File src/pkg/runtime/thread_darwin.c (right): http://codereview.appspot.com/5966067/diff/3006/src/pkg/runtime/thread_darwin.c#newcode53 src/pkg/runtime/thread_darwin.c:53: // Register our thread-creation callback (see sys_darwin_{amd64,386}.s) It's pretty ...
14 years, 2 months ago (2012-04-05 15:20:19 UTC) #5
minux1
PTAL. I've tested this on Mac OS X 10.6.8 amd64 and 386, could you please ...
14 years, 2 months ago (2012-04-05 20:45:16 UTC) #6
mkrautz
On 2012/04/05 20:45:16, minux wrote: > PTAL. > > I've tested this on Mac OS ...
14 years, 2 months ago (2012-04-09 18:36:43 UTC) #7
minux1
ping.
14 years, 1 month ago (2012-04-19 19:45:29 UTC) #8
rsc
http://codereview.appspot.com/5966067/diff/15001/src/pkg/runtime/thread_darwin.c File src/pkg/runtime/thread_darwin.c (right): http://codereview.appspot.com/5966067/diff/15001/src/pkg/runtime/thread_darwin.c#newcode80 src/pkg/runtime/thread_darwin.c:80: if(runtime·getenv("DYLD_INSERT_LIBRARIES")) if(runtime·bsdthread_register() != 0) { if(runtime·getenv("DYLD_INSERT_LIBRARIES") != nil) runtime·throw("runtime: ...
14 years, 1 month ago (2012-04-25 03:08:51 UTC) #9
minux1
Hello rsc@golang.org, krautz@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 1 month ago (2012-04-25 05:51:57 UTC) #10
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=09fe7345e11d *** runtime: give proper messages when user defined DYLD_INSERT_LIBRARIES on Darwin ...
14 years, 1 month ago (2012-04-30 19:55:30 UTC) #11
rsc
14 years, 1 month ago (2012-04-30 19:55:39 UTC) #12
LGTM
Sign in to reply to this message.

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