Re: [9fans] port/allocb.c question

2009-12-09 Thread geoff
I think it's just the idiom we adopted when we added reference counting.

Re: [9fans] port/allocb.c question

2009-12-09 Thread Charles Forsyth
>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.

[9fans] port/allocb.c question

2009-12-09 Thread Venkatesh Srinivas
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