[#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:61360] Re: [ruby-trunk - Bug #9609] [Open] [PATCH] vm_eval.c: fix misplaced RB_GC_GUARDs

From: SASADA Koichi <ko1@...>
Date: 2014-03-07 10:21:08 UTC
List: ruby-core #61360
(2014/03/07 19:09), normalperson@yhbt.net wrote:
> RB_GC_GUARD needs to be placed after RARRAY_PTR usages to portably
> prevent compilers from optimizing the VALUE away.

And also it should be RARRAY_CONST_PTR().

-- 
// SASADA Koichi at atdot dot net

In This Thread