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

Issue 7197050: code review 7197050: runtime: make LockOSThread nestable (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by snaury
Modified:
11 years, 2 months ago
Reviewers:
rsc, dave, remyoudompheng, golang-dev
CC:
golang-dev
Visibility:
Public.

Description

runtime: make LockOSThread nestable This change makes calling LockOSThread and UnlockOSThread safe in library code, which is important when making syscalls that return pointers to per-thread data. Without this change it is unsafe to call UnlockOSThread in such cases, since if user already called LockOSThread then UnlockOSThread would unlock it unconditionally. Fixes issue 3775.

Patch Set 1 #

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

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

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -14 lines) Patch
M src/pkg/runtime/cgocall.c View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M src/pkg/runtime/proc.c View 1 2 3 4 chunks +22 lines, -12 lines 0 comments Download
M src/pkg/runtime/runtime.h View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13
snaury
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
11 years, 3 months ago (2013-01-23 19:42:42 UTC) #1
snaury
On 2013/01/23 19:42:42, snaury wrote: > Hello mailto:golang-dev@googlegroups.com, > > I'd like you to review ...
11 years, 3 months ago (2013-01-23 20:03:28 UTC) #2
snaury
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 3 months ago (2013-01-23 20:16:15 UTC) #3
snaury
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 3 months ago (2013-01-23 20:30:07 UTC) #4
snaury
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 3 months ago (2013-01-23 20:30:30 UTC) #5
dave_cheney.net
Could we say reenterent rather than nestable ? On 24/01/2013, at 7:16, snaury@gmail.com wrote: > ...
11 years, 3 months ago (2013-01-23 20:39:01 UTC) #6
snaury
On 2013/01/23 20:39:01, dfc wrote: > Could we say reenterent rather than nestable ? I'm ...
11 years, 3 months ago (2013-01-23 20:43:13 UTC) #7
remyoudompheng
On 2013/1/23 <snaury@gmail.com> wrote: > On 2013/01/23 20:39:01, dfc wrote: >> >> Could we say ...
11 years, 3 months ago (2013-01-23 21:12:30 UTC) #8
rsc
NOT LGTM sorry I believe this is an API change and therefore not something we ...
11 years, 3 months ago (2013-01-23 21:50:05 UTC) #9
snaury
On 2013/01/23 21:50:05, rsc wrote: > NOT LGTM sorry > > I believe this is ...
11 years, 3 months ago (2013-01-24 05:54:10 UTC) #10
rsc
I believe we've found a better solution in the Windows case. In general runtime.LockOSThread is ...
11 years, 2 months ago (2013-01-30 17:04:37 UTC) #11
snaury
On 2013/01/30 17:04:37, rsc wrote: > I believe we've found a better solution in the ...
11 years, 2 months ago (2013-01-30 17:13:41 UTC) #12
snaury
11 years, 2 months ago (2013-01-30 17:15:21 UTC) #13
*** Abandoned ***
Sign in to reply to this message.

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