1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/internal
Koichi Sasada b9007b6c54 Introduce disposable call-cache.
This patch contains several ideas:

(1) Disposable inline method cache (IMC) for race-free inline method cache
    * Making call-cache (CC) as a RVALUE (GC target object) and allocate new
      CC on cache miss.
    * This technique allows race-free access from parallel processing
      elements like RCU.
(2) Introduce per-Class method cache (pCMC)
    * Instead of fixed-size global method cache (GMC), pCMC allows flexible
      cache size.
    * Caching CCs reduces CC allocation and allow sharing CC's fast-path
      between same call-info (CI) call-sites.
(3) Invalidate an inline method cache by invalidating corresponding method
    entries (MEs)
    * Instead of using class serials, we set "invalidated" flag for method
      entry itself to represent cache invalidation.
    * Compare with using class serials, the impact of method modification
      (add/overwrite/delete) is small.
    * Updating class serials invalidate all method caches of the class and
      sub-classes.
    * Proposed approach only invalidate the method cache of only one ME.

See [Feature #16614] for more details.
2020-02-22 09:58:59 +09:00
..
array.h
bignum.h
bits.h
class.h Introduce disposable call-cache. 2020-02-22 09:58:59 +09:00
compar.h
compile.h
compilers.h
complex.h
cont.h
dir.h
enc.h
encoding.h
enum.h
enumerator.h
error.h Added rb_warn_deprecated_to_remove 2020-01-23 21:42:15 +09:00
eval.h
file.h
fixnum.h
gc.h Separate objspace argument for rb_gc_disable and rb_gc_enable 2020-02-09 17:06:31 +09:00
hash.h
imemo.h Introduce disposable call-cache. 2020-02-22 09:58:59 +09:00
inits.h
io.h
load.h
loadpath.h
math.h
missing.h
mjit.h
numeric.h internal/rational.h: insert assertions in RATIONAL_SET_{NUM,DEN} 2020-01-17 10:06:58 +09:00
object.h
parse.h
proc.h Proc made by Symbol#to_proc should be a lambda [Bug #16260] 2020-02-22 00:45:05 +09:00
process.h
random.h
range.h
rational.h internal/rational.h: insert assertions in RATIONAL_SET_{NUM,DEN} 2020-01-17 10:06:58 +09:00
re.h
sanitizers.h
serial.h
signal.h
static_assert.h
stdbool.h
string.h
struct.h
symbol.h
thread.h
time.h Extract a function, ruby_reset_timezone(). 2020-01-28 23:40:25 +09:00
transcode.h
util.h
variable.h
vm.h Introduce disposable call-cache. 2020-02-22 09:58:59 +09:00
warnings.h