1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/include/ruby/internal
Kevin Newton 6068da8937 Finer-grained constant cache invalidation (take 2)
This commit reintroduces finer-grained constant cache invalidation.
After 8008fb7 got merged, it was causing issues on token-threaded
builds (such as on Windows).

The issue was that when you're iterating through instruction sequences
and using the translator functions to get back the instruction structs,
you're either using `rb_vm_insn_null_translator` or
`rb_vm_insn_addr2insn2` depending if it's a direct-threading build.
`rb_vm_insn_addr2insn2` does some normalization to always return to
you the non-trace version of whatever instruction you're looking at.
`rb_vm_insn_null_translator` does not do that normalization.

This means that when you're looping through the instructions if you're
trying to do an opcode comparison, it can change depending on the type
of threading that you're using. This can be very confusing. So, this
commit creates a new translator function
`rb_vm_insn_normalizing_translator` to always return the non-trace
version so that opcode comparisons don't have to worry about different
configurations.

[Feature #18589]
2022-04-01 14:48:22 -04:00
..
arithmetic
attr
compiler_is
core [Feature #18634] Implement Arrays on Variable Width Allocation 2022-03-22 09:42:39 -04:00
encoding [DOC] Fix reference in rb_enc_associate() description 2022-03-01 10:11:59 +09:00
has Define HAVE___BUILTIN_UNREACHABLE instead of UNREACHABLE 2022-02-19 23:32:52 +09:00
intern Finer-grained constant cache invalidation (take 2) 2022-04-01 14:48:22 -04:00
abi.h [Feature #18634] Implement Arrays on Variable Width Allocation 2022-03-22 09:42:39 -04:00
anyargs.h
arithmetic.h
assume.h Check if __assume is supported 2022-02-19 23:32:52 +09:00
cast.h
compiler_is.h
compiler_since.h
config.h Enable Variable Width Allocation by default 2022-01-12 12:00:55 -05:00
constant_p.h
core.h
ctype.h
dllexport.h
dosish.h
error.h
eval.h
event.h
fl_type.h Remove tainted and trusted features 2021-12-26 23:28:54 +09:00
gc.h
glob.h
globals.h Deprecate include/prepend in refinements and add Refinement#import_methods instead 2021-10-21 16:31:54 +09:00
interpreter.h
iterator.h
memory.h Revert zero-check for alloca 2021-12-10 18:39:48 +09:00
method.h
module.h
newobj.h
rgengc.h
scan_args.h
special_consts.h
static_assert.h
stdalign.h
stdbool.h Honor if _Bool is available 2022-03-16 17:50:13 +09:00
symbol.h
value.h
value_type.h
variable.h [DOC] Fix function name in example 2022-03-01 09:59:12 +09:00
warning_push.h
xmalloc.h