Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[9fans] port/allocb.c question

0 views
Skip to first unread message

Venkatesh Srinivas

unread,
Dec 9, 2009, 11:59:11 AM12/9/09
to
Hi,

In _allocb() in port/allocb.c, there is an _xinc(&b->ref) on a long
inside the Block header. No one else ought have a pointer to this
block yet, seeing as its not done being allocated. Is there any reason
a locked increment is being used?

-- vs

Charles Forsyth

unread,
Dec 9, 2009, 12:58:59 PM12/9/09
to
>Is there any reason a locked increment is being used?

good question. i thought it might be a new tradition.
i don't think it's needed.

ge...@plan9.bell-labs.com

unread,
Dec 9, 2009, 3:27:42 PM12/9/09
to
I think it's just the idiom we adopted when we added reference
counting.


0 new messages