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

Issue 12879045: code review 12879045: time: timers start index to be non 0

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by funny.falcon
Modified:
10 years, 3 months ago
CC:
golang-codereviews
Visibility:
Public.

Description

time: timers start index to be non 0 - index changed to uint32 - larger limit - 0 is enough to indicate unset timer, no need for -1 - with start index == 3, all 4 descendant pointers are always in a same CPU cache line (but maybe it doesn't matter)

Patch Set 1 #

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -21 lines) Patch
M src/pkg/runtime/runtime.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/time.goc View 1 9 chunks +27 lines, -19 lines 0 comments Download
M src/pkg/time/sleep.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11
funny.falcon
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
10 years, 8 months ago (2013-08-26 12:54:06 UTC) #1
bradfitz
Why? On Mon, Aug 26, 2013 at 7:54 AM, <funny.falcon@gmail.com> wrote: > Reviewers: golang-dev1, > ...
10 years, 8 months ago (2013-08-26 13:11:42 UTC) #2
dvyukov
I have the same question. 2^31 timers should be enough for everyone (r) Yuri, if ...
10 years, 8 months ago (2013-08-26 13:28:33 UTC) #3
funny.falcon
On 2013/08/26 13:11:42, bradfitz wrote: > Why? > The main answer: consistency of "wrong index" ...
10 years, 8 months ago (2013-08-26 13:31:25 UTC) #4
funny.falcon
On 2013/08/26 13:28:33, dvyukov wrote: > I have the same question. > 2^31 timers should ...
10 years, 8 months ago (2013-08-26 13:33:23 UTC) #5
funny.falcon
On 2013/08/26 13:28:33, dvyukov wrote: > I have the same question. > 2^31 timers should ...
10 years, 8 months ago (2013-08-26 13:46:18 UTC) #6
gobot
Replacing golang-dev with golang-codereviews.
10 years, 4 months ago (2013-12-20 16:25:56 UTC) #7
gobot
R=dvyukov@google.com (assigned by bradfitz@golang.org)
10 years, 3 months ago (2014-01-19 18:04:50 UTC) #8
dvyukov
On 2013/08/26 13:31:25, funny.falcon wrote: > On 2013/08/26 13:11:42, bradfitz wrote: > > Why? > ...
10 years, 3 months ago (2014-01-20 07:47:39 UTC) #9
funny.falcon
On 2014/01/20 07:47:39, dvyukov wrote: > On 2013/08/26 13:31:25, funny.falcon wrote: > > On 2013/08/26 ...
10 years, 3 months ago (2014-01-20 11:25:46 UTC) #10
dvyukov
10 years, 3 months ago (2014-01-20 13:14:50 UTC) #11
On Mon, Jan 20, 2014 at 3:25 PM,  <funny.falcon@gmail.com> wrote:
> On 2014/01/20 07:47:39, dvyukov wrote:
>>
>> On 2013/08/26 13:31:25, funny.falcon wrote:
>> > On 2013/08/26 13:11:42, bradfitz wrote:
>> > > Why?
>> > >
>> >
>> > The main answer: consistency of "wrong index" - ie 0 is always
>
> wrong.
>>
>> > May be, with this change you will accept "value timers" easily in a
>
> future,
>>
>> > since
>> > then will be cleaner difference between set and unset timer.
>> > (https://codereview.appspot.com/12876047/)
>
>
>
>> The decision on "value timers" was negative. And it must not be based
>
> on
>>
>> implementation aspects.
>> If/when we reevaluate decision on "value timers", we can reevaluate
>
> this change
>>
>> as well. But for now I propose to close this.
>> R=close
>
>
> hmm... this issue is not tied with "value timers". so that, strange to
> see reference to.


You've mentioned "value timers" in the rationale for this change.
Sign in to reply to this message.

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