From: Eric Wong Date: 2014-03-13T17:12:43+00:00 Subject: [ruby-core:61471] Re: [REJECT?] xmalloc/xfree: reduce atomic ops w/ thread-locals SASADA Koichi wrote: > Hi Eric, > > Currently, `malloc_increase' (and so on) only a *hint*. > > So I think we can eliminate atomic instruction simply. What do you think > about? How about only using thread local and remove the process-wide globals? Underflow from race conditions might cause too many GC runs. > # basically, GVL protects multi-threads parallel update of such values. > # this atomic operations only for call_without_gvl(). > # so it is minor case. Right. I am looking into using GVL less :) For example, much of sweep phase may be done without GVL.