[#61424] [REJECT?] xmalloc/xfree: reduce atomic ops w/ thread-locals — Eric Wong <normalperson@...>

I'm unsure about this. I _hate_ the extra branches this adds;

13 messages 2014/03/12

[ruby-core:61367] Re: [ruby-trunk - Bug #9609] [Open] [PATCH] vm_eval.c: fix misplaced RB_GC_GUARDs

From: SASADA Koichi <ko1@...>
Date: 2014-03-07 11:06:18 UTC
List: ruby-core #61367
(2014/03/07 20:03), SASADA Koichi wrote:
>> > Should we ignore WB unprotect for frozen objects?
> No relation between frozen and wb unprotected flag. We can use
> RARRAY_CONST_PTR() for this case. I'll commit it with other patches.

Ah, I understand what you mean.  As you say, we *can* ignore unprotect.
But I think the checking cost is bigger.

-- 
// SASADA Koichi at atdot dot net

In This Thread

Prev Next