datadog-ruby_core_source 3.4.1 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/id.h +357 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/id_table.h +15 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/array.h +2 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/basic_operators.h +66 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/bignum.h +256 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/bits.h +647 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/box.h +83 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/class.h +806 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/cmdlineopt.h +3 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/concurrent_set.h +21 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/cont.h +34 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/encoding.h +2 -1
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/error.h +7 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/eval.h +43 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/gc.h +360 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/hash.h +1 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/imemo.h +87 -22
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/inits.h +4 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/io.h +25 -5
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/load.h +2 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/numeric.h +323 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/object.h +1 -1
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/re.h +5 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/sanitizers.h +16 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/set_table.h +70 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/signal.h +1 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/st.h +1 -1
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/string.h +4 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/struct.h +41 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/symbol.h +4 -5
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/thread.h +112 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/time.h +34 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/variable.h +13 -9
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/internal/vm.h +138 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal.h +0 -3
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/iseq.h +359 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/method.h +276 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/prism/ast.h +8254 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/diagnostic.h +7 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/extension.h +1 -1
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/prism/options.h +488 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/parser.h +3 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/prism/prism.h +408 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/regexp.h +2 -2
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_buffer.h +8 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_integer.h +4 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_list.h +6 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_string.h +12 -2
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/version.h +2 -2
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism_compile.h +1 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ractor_core.h +63 -114
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/ruby_atomic.h +73 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/rubyparser.h +1393 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/shape.h +464 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/thread_pthread.h +177 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/vm_core.h +2406 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-p0/vm_debug.h +124 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/ccan/build_assert/build_assert.h +40 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/ccan/check_type/check_type.h +63 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/ccan/container_of/container_of.h +142 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/ccan/list/list.h +791 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/ccan/str/str.h +17 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/id.h +7 -5
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/id_table.h +54 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/array.h +154 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/internal/bignum.h +1 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/box.h +81 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/class.h +805 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/cmdlineopt.h +64 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/compar.h +29 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/compile.h +34 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/compilers.h +107 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/complex.h +29 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/concurrent_set.h +21 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/dir.h +16 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/enc.h +19 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/encoding.h +39 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/enum.h +18 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/enumerator.h +21 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/error.h +251 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/internal/eval.h +8 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/file.h +38 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/fixnum.h +185 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/internal/gc.h +25 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/hash.h +194 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/imemo.h +322 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/inits.h +51 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/io.h +163 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/load.h +20 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/loadpath.h +16 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/math.h +23 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/missing.h +19 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/internal/numeric.h +1 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/object.h +63 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/parse.h +131 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/proc.h +30 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/process.h +124 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/ractor.h +10 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/random.h +17 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/range.h +40 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/rational.h +71 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/re.h +33 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/ruby_parser.h +102 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/sanitizers.h +346 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/serial.h +23 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/set_table.h +70 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/signal.h +25 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/st.h +11 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/static_assert.h +16 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/string.h +203 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/struct.h +160 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/symbol.h +46 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/internal/thread.h +14 -10
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/transcode.h +23 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/util.h +27 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/variable.h +74 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/internal/vm.h +3 -4
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal/warnings.h +16 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/internal.h +105 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/iseq.h +7 -1
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/method.h +14 -1
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/node.h +122 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/parser_st.h +162 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/parser_value.h +106 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/prism/ast.h +322 -53
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/defines.h +260 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/diagnostic.h +458 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/encoding.h +283 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/extension.h +19 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/node.h +129 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/prism/options.h +46 -3
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/pack.h +163 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/parser.h +936 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/prettyprint.h +34 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/prism/prism.h +39 -14
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/regexp.h +43 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/static_literals.h +121 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/util/pm_buffer.h +236 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/util/pm_char.h +204 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/util/pm_constant_pool.h +218 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/util/pm_integer.h +130 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/util/pm_list.h +103 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/util/pm_memchr.h +29 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/util/pm_newline_list.h +113 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/util/pm_string.h +200 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/util/pm_strncasecmp.h +32 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/util/pm_strpbrk.h +46 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism/version.h +29 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/prism_compile.h +106 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/ractor_core.h +306 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/ruby_assert.h +14 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/ruby_atomic.h +66 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/rubyparser.h +15 -1
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/shape.h +444 -0
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/thread_none.h +21 -0
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/thread_pthread.h +10 -2
- data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/vm_core.h +160 -45
- data/lib/datadog/ruby_core_source/ruby-4.0.0-preview2/vm_opts.h +67 -0
- data/lib/datadog/ruby_core_source/version.rb +1 -1
- data/lib/datadog/ruby_core_source.rb +1 -1
- metadata +214 -106
- data/CHANGELOG.datadog.md +0 -19
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/internal/class.h +0 -283
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/ruby_atomic.h +0 -23
- data/lib/datadog/ruby_core_source/ruby-3.5.0-preview1/shape.h +0 -234
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ccan/build_assert/build_assert.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ccan/check_type/check_type.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ccan/container_of/container_of.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ccan/list/list.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ccan/str/str.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/compar.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/compile.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/compilers.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/complex.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/dir.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/enc.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/enum.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/enumerator.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/file.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/fixnum.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/loadpath.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/math.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/missing.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/parse.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/proc.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/process.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/ractor.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/random.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/range.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/rational.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/ruby_parser.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/serial.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/static_assert.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/transcode.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/util.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/internal/warnings.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/node.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/parser_st.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/parser_value.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/defines.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/encoding.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/node.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/pack.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/prettyprint.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/static_literals.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_char.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_constant_pool.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_memchr.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_newline_list.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_strncasecmp.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/prism/util/pm_strpbrk.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/ruby_assert.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/thread_none.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-p0}/vm_opts.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/internal/basic_operators.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/internal/bits.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/internal/cont.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/internal/time.h +0 -0
- /data/lib/datadog/ruby_core_source/{ruby-3.5.0-preview1 → ruby-4.0.0-preview2}/vm_debug.h +0 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
#ifndef INTERNAL_SET_TABLE_H
|
|
2
|
+
#define INTERNAL_SET_TABLE_H
|
|
3
|
+
|
|
4
|
+
#include "ruby/st.h"
|
|
5
|
+
|
|
6
|
+
struct set_table_entry;
|
|
7
|
+
|
|
8
|
+
typedef struct set_table_entry set_table_entry;
|
|
9
|
+
|
|
10
|
+
struct set_table {
|
|
11
|
+
/* Cached features of the table -- see st.c for more details. */
|
|
12
|
+
unsigned char entry_power, bin_power, size_ind;
|
|
13
|
+
/* How many times the table was rebuilt. */
|
|
14
|
+
unsigned int rebuilds_num;
|
|
15
|
+
const struct st_hash_type *type;
|
|
16
|
+
/* Number of entries currently in the table. */
|
|
17
|
+
st_index_t num_entries;
|
|
18
|
+
|
|
19
|
+
/* Start and bound index of entries in array entries.
|
|
20
|
+
entries_starts and entries_bound are in interval
|
|
21
|
+
[0,allocated_entries]. */
|
|
22
|
+
st_index_t entries_start, entries_bound;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Array of size 2^entry_power.
|
|
26
|
+
* Followed by st_index_t *bins, Array of bins used for access by keys.
|
|
27
|
+
*/
|
|
28
|
+
set_table_entry *entries;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
typedef struct set_table set_table;
|
|
32
|
+
|
|
33
|
+
typedef int set_foreach_callback_func(st_data_t, st_data_t);
|
|
34
|
+
typedef int set_foreach_check_callback_func(st_data_t, st_data_t, int);
|
|
35
|
+
typedef int set_update_callback_func(st_data_t *key, st_data_t arg, int existing);
|
|
36
|
+
|
|
37
|
+
#define set_table_size rb_set_table_size
|
|
38
|
+
size_t rb_set_table_size(const struct set_table *tbl);
|
|
39
|
+
#define set_init_table_with_size rb_set_init_table_with_size
|
|
40
|
+
set_table *rb_set_init_table_with_size(set_table *tab, const struct st_hash_type *, st_index_t);
|
|
41
|
+
#define set_init_numtable rb_set_init_numtable
|
|
42
|
+
set_table *rb_set_init_numtable(void);
|
|
43
|
+
#define set_init_numtable_with_size rb_set_init_numtable_with_size
|
|
44
|
+
set_table *rb_set_init_numtable_with_size(st_index_t size);
|
|
45
|
+
#define set_table_delete rb_set_table_delete
|
|
46
|
+
int rb_set_table_delete(set_table *, st_data_t *); /* returns 0:notfound 1:deleted */
|
|
47
|
+
#define set_insert rb_set_insert
|
|
48
|
+
int rb_set_insert(set_table *, st_data_t);
|
|
49
|
+
#define set_table_lookup rb_set_table_lookup
|
|
50
|
+
int rb_set_table_lookup(set_table *, st_data_t);
|
|
51
|
+
#define set_foreach_with_replace rb_set_foreach_with_replace
|
|
52
|
+
int rb_set_foreach_with_replace(set_table *tab, set_foreach_check_callback_func *func, set_update_callback_func *replace, st_data_t arg);
|
|
53
|
+
#define set_table_foreach rb_set_table_foreach
|
|
54
|
+
int rb_set_table_foreach(set_table *, set_foreach_callback_func *, st_data_t);
|
|
55
|
+
#define set_foreach_check rb_set_foreach_check
|
|
56
|
+
int rb_set_foreach_check(set_table *, set_foreach_check_callback_func *, st_data_t, st_data_t);
|
|
57
|
+
#define set_keys rb_set_keys
|
|
58
|
+
st_index_t rb_set_keys(set_table *table, st_data_t *keys, st_index_t size);
|
|
59
|
+
#define set_free_table rb_set_free_table
|
|
60
|
+
void rb_set_free_table(set_table *);
|
|
61
|
+
#define set_table_clear rb_set_table_clear
|
|
62
|
+
void rb_set_table_clear(set_table *);
|
|
63
|
+
#define set_copy rb_set_copy
|
|
64
|
+
set_table *rb_set_copy(set_table *new_table, set_table *old_table);
|
|
65
|
+
#define set_memsize rb_set_memsize
|
|
66
|
+
PUREFUNC(size_t rb_set_memsize(const set_table *));
|
|
67
|
+
#define set_compact_table rb_set_compact_table
|
|
68
|
+
void set_compact_table(set_table *tab);
|
|
69
|
+
|
|
70
|
+
#endif
|
|
@@ -30,6 +30,7 @@ enum ruby_rstring_private_flags {
|
|
|
30
30
|
#endif
|
|
31
31
|
|
|
32
32
|
/* string.c */
|
|
33
|
+
VALUE rb_str_dup_m(VALUE str);
|
|
33
34
|
VALUE rb_fstring(VALUE);
|
|
34
35
|
VALUE rb_fstring_cstr(const char *str);
|
|
35
36
|
VALUE rb_fstring_enc_new(const char *ptr, long len, rb_encoding *enc);
|
|
@@ -83,6 +84,9 @@ VALUE rb_setup_fake_str(struct RString *fake_str, const char *name, long len, rb
|
|
|
83
84
|
RUBY_SYMBOL_EXPORT_END
|
|
84
85
|
|
|
85
86
|
VALUE rb_fstring_new(const char *ptr, long len);
|
|
87
|
+
void rb_gc_free_fstring(VALUE obj);
|
|
88
|
+
bool rb_obj_is_fstring_table(VALUE obj);
|
|
89
|
+
void Init_fstring_table();
|
|
86
90
|
VALUE rb_obj_as_string_result(VALUE str, VALUE obj);
|
|
87
91
|
VALUE rb_str_opt_plus(VALUE x, VALUE y);
|
|
88
92
|
VALUE rb_str_concat_literals(size_t num, const VALUE *strary);
|
|
@@ -11,10 +11,23 @@
|
|
|
11
11
|
#include "ruby/internal/stdbool.h" /* for bool */
|
|
12
12
|
#include "ruby/ruby.h" /* for struct RBasic */
|
|
13
13
|
|
|
14
|
+
/* Flags of RStruct
|
|
15
|
+
*
|
|
16
|
+
* 1-7: RSTRUCT_EMBED_LEN
|
|
17
|
+
* If non-zero, the struct is embedded (its contents follow the
|
|
18
|
+
* header, rather than being on a separately allocated buffer) and
|
|
19
|
+
* these bits are the length of the Struct.
|
|
20
|
+
* 8: RSTRUCT_GEN_FIELDS
|
|
21
|
+
* The struct is embedded and has no space left to store the
|
|
22
|
+
* IMEMO/fields reference. Any ivar this struct may have will be in
|
|
23
|
+
* the generic_fields_tbl. This flag doesn't imply the struct has
|
|
24
|
+
* ivars.
|
|
25
|
+
*/
|
|
14
26
|
enum {
|
|
15
27
|
RSTRUCT_EMBED_LEN_MASK = RUBY_FL_USER7 | RUBY_FL_USER6 | RUBY_FL_USER5 | RUBY_FL_USER4 |
|
|
16
28
|
RUBY_FL_USER3 | RUBY_FL_USER2 | RUBY_FL_USER1,
|
|
17
29
|
RSTRUCT_EMBED_LEN_SHIFT = (RUBY_FL_USHIFT+1),
|
|
30
|
+
RSTRUCT_GEN_FIELDS = RUBY_FL_USER8,
|
|
18
31
|
};
|
|
19
32
|
|
|
20
33
|
struct RStruct {
|
|
@@ -23,6 +36,7 @@ struct RStruct {
|
|
|
23
36
|
struct {
|
|
24
37
|
long len;
|
|
25
38
|
const VALUE *ptr;
|
|
39
|
+
VALUE fields_obj;
|
|
26
40
|
} heap;
|
|
27
41
|
/* This is a length 1 array because:
|
|
28
42
|
* 1. GCC has a bug that does not optimize C flexible array members
|
|
@@ -116,4 +130,31 @@ RSTRUCT_GET(VALUE st, long k)
|
|
|
116
130
|
return RSTRUCT_CONST_PTR(st)[k];
|
|
117
131
|
}
|
|
118
132
|
|
|
133
|
+
static inline VALUE
|
|
134
|
+
RSTRUCT_FIELDS_OBJ(VALUE st)
|
|
135
|
+
{
|
|
136
|
+
const long embed_len = RSTRUCT_EMBED_LEN(st);
|
|
137
|
+
VALUE fields_obj;
|
|
138
|
+
if (embed_len) {
|
|
139
|
+
RUBY_ASSERT(!FL_TEST_RAW(st, RSTRUCT_GEN_FIELDS));
|
|
140
|
+
fields_obj = RSTRUCT_GET(st, embed_len);
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
fields_obj = RSTRUCT(st)->as.heap.fields_obj;
|
|
144
|
+
}
|
|
145
|
+
return fields_obj;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
static inline void
|
|
149
|
+
RSTRUCT_SET_FIELDS_OBJ(VALUE st, VALUE fields_obj)
|
|
150
|
+
{
|
|
151
|
+
const long embed_len = RSTRUCT_EMBED_LEN(st);
|
|
152
|
+
if (embed_len) {
|
|
153
|
+
RUBY_ASSERT(!FL_TEST_RAW(st, RSTRUCT_GEN_FIELDS));
|
|
154
|
+
RSTRUCT_SET(st, embed_len, fields_obj);
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
RB_OBJ_WRITE(st, &RSTRUCT(st)->as.heap.fields_obj, fields_obj);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
119
160
|
#endif /* INTERNAL_STRUCT_H */
|
|
@@ -17,8 +17,7 @@
|
|
|
17
17
|
#endif
|
|
18
18
|
|
|
19
19
|
/* symbol.c */
|
|
20
|
-
void
|
|
21
|
-
void rb_sym_global_symbols_update_references(void);
|
|
20
|
+
void rb_sym_global_symbols_mark_and_move(void);
|
|
22
21
|
VALUE rb_to_symbol_type(VALUE obj);
|
|
23
22
|
VALUE rb_sym_intern(const char *ptr, long len, rb_encoding *enc);
|
|
24
23
|
VALUE rb_sym_intern_ascii(const char *ptr, long len);
|
|
@@ -31,11 +30,11 @@ PUREFUNC(int rb_is_const_sym(VALUE sym));
|
|
|
31
30
|
PUREFUNC(int rb_is_attrset_sym(VALUE sym));
|
|
32
31
|
ID rb_make_internal_id(void);
|
|
33
32
|
ID rb_make_temporary_id(size_t n);
|
|
33
|
+
bool rb_obj_is_symbol_table(VALUE obj);
|
|
34
|
+
void rb_sym_global_symbol_table_foreach_weak_reference(int (*callback)(VALUE *key, void *data), void *data);
|
|
34
35
|
void rb_gc_free_dsymbol(VALUE);
|
|
35
36
|
int rb_static_id_valid_p(ID id);
|
|
36
|
-
|
|
37
|
-
/* vm.c */
|
|
38
|
-
void rb_free_static_symid_str(void);
|
|
37
|
+
void rb_free_global_symbol_table(void);
|
|
39
38
|
|
|
40
39
|
#if __has_builtin(__builtin_constant_p)
|
|
41
40
|
#define rb_sym_intern_ascii_cstr(ptr) \
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
#ifndef INTERNAL_THREAD_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
+
#define INTERNAL_THREAD_H
|
|
3
|
+
/**
|
|
4
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
|
5
|
+
* @copyright This file is a part of the programming language Ruby.
|
|
6
|
+
* Permission is hereby granted, to either redistribute and/or
|
|
7
|
+
* modify this file, provided that the conditions mentioned in the
|
|
8
|
+
* file COPYING are met. Consult the file for details.
|
|
9
|
+
* @brief Internal header for Thread.
|
|
10
|
+
*/
|
|
11
|
+
#include "ruby/ruby.h" /* for VALUE */
|
|
12
|
+
#include "ruby/intern.h" /* for rb_blocking_function_t */
|
|
13
|
+
#include "ccan/list/list.h" /* for list in rb_io_close_wait_list */
|
|
14
|
+
|
|
15
|
+
struct rb_thread_struct; /* in vm_core.h */
|
|
16
|
+
struct rb_io;
|
|
17
|
+
|
|
18
|
+
#define RB_VM_SAVE_MACHINE_CONTEXT(th) \
|
|
19
|
+
do { \
|
|
20
|
+
FLUSH_REGISTER_WINDOWS; \
|
|
21
|
+
setjmp((th)->ec->machine.regs); \
|
|
22
|
+
SET_MACHINE_STACK_END(&(th)->ec->machine.stack_end); \
|
|
23
|
+
} while (0)
|
|
24
|
+
|
|
25
|
+
/* thread.c */
|
|
26
|
+
#define COVERAGE_INDEX_LINES 0
|
|
27
|
+
#define COVERAGE_INDEX_BRANCHES 1
|
|
28
|
+
#define COVERAGE_TARGET_LINES 1
|
|
29
|
+
#define COVERAGE_TARGET_BRANCHES 2
|
|
30
|
+
#define COVERAGE_TARGET_METHODS 4
|
|
31
|
+
#define COVERAGE_TARGET_ONESHOT_LINES 8
|
|
32
|
+
#define COVERAGE_TARGET_EVAL 16
|
|
33
|
+
|
|
34
|
+
#define RUBY_FATAL_THREAD_KILLED INT2FIX(0)
|
|
35
|
+
#define RUBY_FATAL_THREAD_TERMINATED INT2FIX(1)
|
|
36
|
+
#define RUBY_FATAL_FIBER_KILLED RB_INT2FIX(2)
|
|
37
|
+
|
|
38
|
+
VALUE rb_obj_is_mutex(VALUE obj);
|
|
39
|
+
VALUE rb_suppress_tracing(VALUE (*func)(VALUE), VALUE arg);
|
|
40
|
+
void rb_thread_execute_interrupts(VALUE th);
|
|
41
|
+
VALUE rb_get_coverages(void);
|
|
42
|
+
int rb_get_coverage_mode(void);
|
|
43
|
+
VALUE rb_default_coverage(int);
|
|
44
|
+
VALUE rb_thread_shield_new(void);
|
|
45
|
+
bool rb_thread_shield_owned(VALUE self);
|
|
46
|
+
VALUE rb_thread_shield_wait(VALUE self);
|
|
47
|
+
VALUE rb_thread_shield_release(VALUE self);
|
|
48
|
+
VALUE rb_thread_shield_destroy(VALUE self);
|
|
49
|
+
int rb_thread_to_be_killed(VALUE thread);
|
|
50
|
+
void rb_thread_acquire_fork_lock(void);
|
|
51
|
+
void rb_thread_release_fork_lock(void);
|
|
52
|
+
void rb_thread_reset_fork_lock(void);
|
|
53
|
+
void rb_mutex_allow_trap(VALUE self, int val);
|
|
54
|
+
VALUE rb_uninterruptible(VALUE (*b_proc)(VALUE), VALUE data);
|
|
55
|
+
VALUE rb_mutex_owned_p(VALUE self);
|
|
56
|
+
VALUE rb_exec_recursive_outer_mid(VALUE (*f)(VALUE g, VALUE h, int r), VALUE g, VALUE h, ID mid);
|
|
57
|
+
void ruby_mn_threads_params(void);
|
|
58
|
+
|
|
59
|
+
int rb_thread_io_wait(struct rb_thread_struct *th, struct rb_io *io, int events, struct timeval * timeout);
|
|
60
|
+
int rb_thread_wait_for_single_fd(struct rb_thread_struct *th, int fd, int events, struct timeval * timeout);
|
|
61
|
+
|
|
62
|
+
size_t rb_thread_io_close_interrupt(struct rb_io *);
|
|
63
|
+
void rb_thread_io_close_wait(struct rb_io *);
|
|
64
|
+
|
|
65
|
+
void rb_ec_check_ints(struct rb_execution_context_struct *ec);
|
|
66
|
+
|
|
67
|
+
void rb_thread_free_native_thread(void *th_ptr);
|
|
68
|
+
|
|
69
|
+
RUBY_SYMBOL_EXPORT_BEGIN
|
|
70
|
+
|
|
71
|
+
void *rb_thread_prevent_fork(void *(*func)(void *), void *data); /* for ext/socket/raddrinfo.c */
|
|
72
|
+
|
|
73
|
+
/* Temporary. This API will be removed (renamed). */
|
|
74
|
+
VALUE rb_thread_io_blocking_region(struct rb_io *io, rb_blocking_function_t *func, void *data1);
|
|
75
|
+
VALUE rb_thread_io_blocking_call(struct rb_io *io, rb_blocking_function_t *func, void *data1, int events);
|
|
76
|
+
|
|
77
|
+
// Invoke the given function, with the specified argument, in a way that `IO#close` from another execution context can interrupt it.
|
|
78
|
+
VALUE rb_thread_io_blocking_operation(VALUE self, VALUE(*function)(VALUE), VALUE argument);
|
|
79
|
+
|
|
80
|
+
/* thread.c (export) */
|
|
81
|
+
int ruby_thread_has_gvl_p(void); /* for ext/fiddle/closure.c */
|
|
82
|
+
|
|
83
|
+
RUBY_SYMBOL_EXPORT_END
|
|
84
|
+
|
|
85
|
+
int rb_threadptr_execute_interrupts(struct rb_thread_struct *th, int blocking_timing);
|
|
86
|
+
bool rb_thread_mn_schedulable(VALUE thread);
|
|
87
|
+
|
|
88
|
+
bool rb_thread_resolve_unblock_function(rb_unblock_function_t **unblock_function, void **data2, struct rb_thread_struct *thread);
|
|
89
|
+
|
|
90
|
+
// interrupt exec
|
|
91
|
+
|
|
92
|
+
typedef VALUE (rb_interrupt_exec_func_t)(void *data);
|
|
93
|
+
|
|
94
|
+
enum rb_interrupt_exec_flag {
|
|
95
|
+
rb_interrupt_exec_flag_none = 0x00,
|
|
96
|
+
rb_interrupt_exec_flag_value_data = 0x01,
|
|
97
|
+
rb_interrupt_exec_flag_new_thread = 0x02,
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
// interrupt the target_th and run func.
|
|
101
|
+
struct rb_ractor_struct;
|
|
102
|
+
|
|
103
|
+
void rb_threadptr_interrupt_exec(struct rb_thread_struct *target_th,
|
|
104
|
+
rb_interrupt_exec_func_t *func, void *data, enum rb_interrupt_exec_flag flags);
|
|
105
|
+
|
|
106
|
+
// create a thread in the target_r and run func on the created thread.
|
|
107
|
+
void rb_ractor_interrupt_exec(struct rb_ractor_struct *target_r,
|
|
108
|
+
rb_interrupt_exec_func_t *func, void *data, enum rb_interrupt_exec_flag flags);
|
|
109
|
+
|
|
110
|
+
void rb_threadptr_interrupt_exec_task_mark(struct rb_thread_struct *th);
|
|
111
|
+
|
|
112
|
+
#endif /* INTERNAL_THREAD_H */
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#ifndef INTERNAL_TIME_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
+
#define INTERNAL_TIME_H
|
|
3
|
+
/**
|
|
4
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
|
5
|
+
* @copyright This file is a part of the programming language Ruby.
|
|
6
|
+
* Permission is hereby granted, to either redistribute and/or
|
|
7
|
+
* modify this file, provided that the conditions mentioned in the
|
|
8
|
+
* file COPYING are met. Consult the file for details.
|
|
9
|
+
* @brief Internal header for Time.
|
|
10
|
+
*/
|
|
11
|
+
#include "ruby/internal/config.h" /* for SIGNEDNESS_OF_TIME_T */
|
|
12
|
+
#include "internal/bits.h" /* for SIGNED_INTEGER_MAX */
|
|
13
|
+
#include "ruby/ruby.h" /* for VALUE */
|
|
14
|
+
|
|
15
|
+
#if SIGNEDNESS_OF_TIME_T < 0 /* signed */
|
|
16
|
+
# define TIMET_MAX SIGNED_INTEGER_MAX(time_t)
|
|
17
|
+
# define TIMET_MIN SIGNED_INTEGER_MIN(time_t)
|
|
18
|
+
#elif SIGNEDNESS_OF_TIME_T > 0 /* unsigned */
|
|
19
|
+
# define TIMET_MAX UNSIGNED_INTEGER_MAX(time_t)
|
|
20
|
+
# define TIMET_MIN ((time_t)0)
|
|
21
|
+
#endif
|
|
22
|
+
|
|
23
|
+
struct timeval; /* <- in <sys/time.h> or <winsock2.h> */
|
|
24
|
+
|
|
25
|
+
/* time.c */
|
|
26
|
+
struct timeval rb_time_timeval(VALUE);
|
|
27
|
+
|
|
28
|
+
RUBY_SYMBOL_EXPORT_BEGIN
|
|
29
|
+
/* time.c (export) */
|
|
30
|
+
RUBY_SYMBOL_EXPORT_END
|
|
31
|
+
|
|
32
|
+
void ruby_reset_timezone(const char *);
|
|
33
|
+
|
|
34
|
+
#endif /* INTERNAL_TIME_H */
|
|
@@ -13,21 +13,22 @@
|
|
|
13
13
|
#include "constant.h" /* for rb_const_entry_t */
|
|
14
14
|
#include "ruby/internal/stdbool.h" /* for bool */
|
|
15
15
|
#include "ruby/ruby.h" /* for VALUE */
|
|
16
|
-
#include "shape.h" /* for
|
|
16
|
+
#include "shape.h" /* for shape_id_t */
|
|
17
17
|
|
|
18
18
|
/* variable.c */
|
|
19
19
|
void rb_gc_mark_global_tbl(void);
|
|
20
20
|
void rb_gc_update_global_tbl(void);
|
|
21
|
-
size_t rb_generic_ivar_memsize(VALUE);
|
|
22
21
|
VALUE rb_search_class_path(VALUE);
|
|
23
22
|
VALUE rb_attr_delete(VALUE, ID);
|
|
24
23
|
void rb_autoload_str(VALUE mod, ID id, VALUE file);
|
|
25
24
|
VALUE rb_autoload_at_p(VALUE, ID, int);
|
|
25
|
+
void rb_autoload_copy_table_for_box(st_table *, const rb_box_t *);
|
|
26
26
|
NORETURN(VALUE rb_mod_const_missing(VALUE,VALUE));
|
|
27
27
|
rb_gvar_getter_t *rb_gvar_getter_function_of(ID);
|
|
28
28
|
rb_gvar_setter_t *rb_gvar_setter_function_of(ID);
|
|
29
29
|
void rb_gvar_readonly_setter(VALUE v, ID id, VALUE *_);
|
|
30
30
|
void rb_gvar_ractor_local(const char *name);
|
|
31
|
+
void rb_gvar_box_ready(const char *name);
|
|
31
32
|
|
|
32
33
|
/**
|
|
33
34
|
* Sets the name of a module.
|
|
@@ -45,18 +46,22 @@ void rb_gvar_ractor_local(const char *name);
|
|
|
45
46
|
*/
|
|
46
47
|
VALUE rb_mod_set_temporary_name(VALUE, VALUE);
|
|
47
48
|
|
|
48
|
-
struct gen_ivtbl;
|
|
49
|
-
int rb_gen_ivtbl_get(VALUE obj, ID id, struct gen_ivtbl **ivtbl);
|
|
50
49
|
void rb_obj_copy_ivs_to_hash_table(VALUE obj, st_table *table);
|
|
51
|
-
void
|
|
50
|
+
void rb_obj_init_too_complex(VALUE obj, st_table *table);
|
|
52
51
|
void rb_evict_ivars_to_hash(VALUE obj);
|
|
52
|
+
VALUE rb_obj_field_get(VALUE obj, shape_id_t target_shape_id);
|
|
53
|
+
void rb_ivar_set_internal(VALUE obj, ID id, VALUE val);
|
|
54
|
+
attr_index_t rb_ivar_set_index(VALUE obj, ID id, VALUE val);
|
|
55
|
+
attr_index_t rb_obj_field_set(VALUE obj, shape_id_t target_shape_id, ID field_name, VALUE val);
|
|
56
|
+
VALUE rb_ivar_get_at(VALUE obj, attr_index_t index, ID id);
|
|
57
|
+
VALUE rb_ivar_get_at_no_ractor_check(VALUE obj, attr_index_t index);
|
|
53
58
|
|
|
54
59
|
RUBY_SYMBOL_EXPORT_BEGIN
|
|
55
60
|
/* variable.c (export) */
|
|
56
61
|
void rb_mark_generic_ivar(VALUE obj);
|
|
57
62
|
VALUE rb_const_missing(VALUE klass, VALUE name);
|
|
58
|
-
|
|
59
|
-
void
|
|
63
|
+
bool rb_class_ivar_set(VALUE klass, ID vid, VALUE value);
|
|
64
|
+
void rb_fields_tbl_copy(VALUE dst, VALUE src);
|
|
60
65
|
RUBY_SYMBOL_EXPORT_END
|
|
61
66
|
|
|
62
67
|
VALUE rb_ivar_lookup(VALUE obj, ID id, VALUE undef);
|
|
@@ -64,7 +69,6 @@ VALUE rb_gvar_get(ID);
|
|
|
64
69
|
VALUE rb_gvar_set(ID, VALUE);
|
|
65
70
|
VALUE rb_gvar_defined(ID);
|
|
66
71
|
void rb_const_warn_if_deprecated(const rb_const_entry_t *, VALUE, ID);
|
|
67
|
-
void rb_ensure_iv_list_size(VALUE obj, uint32_t
|
|
68
|
-
attr_index_t rb_obj_ivar_set(VALUE obj, ID id, VALUE val);
|
|
72
|
+
void rb_ensure_iv_list_size(VALUE obj, uint32_t current_len, uint32_t newsize);
|
|
69
73
|
|
|
70
74
|
#endif /* INTERNAL_VARIABLE_H */
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
#ifndef INTERNAL_VM_H /*-*-C-*-vi:se ft=c:*/
|
|
2
|
+
#define INTERNAL_VM_H
|
|
3
|
+
/**
|
|
4
|
+
* @author Ruby developers <ruby-core@ruby-lang.org>
|
|
5
|
+
* @copyright This file is a part of the programming language Ruby.
|
|
6
|
+
* Permission is hereby granted, to either redistribute and/or
|
|
7
|
+
* modify this file, provided that the conditions mentioned in the
|
|
8
|
+
* file COPYING are met. Consult the file for details.
|
|
9
|
+
* @brief Internal header for RubyVM.
|
|
10
|
+
*/
|
|
11
|
+
#include "ruby/internal/stdbool.h" /* for bool */
|
|
12
|
+
#include "internal/serial.h" /* for rb_serial_t */
|
|
13
|
+
#include "internal/static_assert.h" /* for STATIC_ASSERT */
|
|
14
|
+
#include "ruby/ruby.h" /* for ID */
|
|
15
|
+
#include "ruby/st.h" /* for st_table */
|
|
16
|
+
|
|
17
|
+
#ifdef rb_funcallv
|
|
18
|
+
# undef rb_funcallv
|
|
19
|
+
#endif
|
|
20
|
+
|
|
21
|
+
#ifdef rb_method_basic_definition_p
|
|
22
|
+
# undef rb_method_basic_definition_p
|
|
23
|
+
#endif
|
|
24
|
+
|
|
25
|
+
struct rb_callable_method_entry_struct; /* in method.h */
|
|
26
|
+
struct rb_method_definition_struct; /* in method.h */
|
|
27
|
+
struct rb_execution_context_struct; /* in vm_core.h */
|
|
28
|
+
struct rb_control_frame_struct; /* in vm_core.h */
|
|
29
|
+
struct rb_callinfo; /* in vm_core.h */
|
|
30
|
+
|
|
31
|
+
enum method_missing_reason {
|
|
32
|
+
MISSING_NOENTRY = 0x00,
|
|
33
|
+
MISSING_PRIVATE = 0x01,
|
|
34
|
+
MISSING_PROTECTED = 0x02,
|
|
35
|
+
MISSING_FCALL = 0x04,
|
|
36
|
+
MISSING_VCALL = 0x08,
|
|
37
|
+
MISSING_SUPER = 0x10,
|
|
38
|
+
MISSING_MISSING = 0x20,
|
|
39
|
+
MISSING_NONE = 0x40
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/* vm_insnhelper.h */
|
|
43
|
+
VALUE rb_vm_push_frame_fname(struct rb_execution_context_struct *ec, VALUE fname);
|
|
44
|
+
|
|
45
|
+
/* vm.c */
|
|
46
|
+
VALUE rb_obj_is_thread(VALUE obj);
|
|
47
|
+
void rb_vm_mark(void *ptr);
|
|
48
|
+
void rb_vm_register_global_object(VALUE obj);
|
|
49
|
+
void rb_vm_each_stack_value(void *ptr, void (*cb)(VALUE, void*), void *ctx);
|
|
50
|
+
PUREFUNC(VALUE rb_vm_top_self(void));
|
|
51
|
+
const void **rb_vm_get_insns_address_table(void);
|
|
52
|
+
VALUE rb_source_location(int *pline);
|
|
53
|
+
const char *rb_source_location_cstr(int *pline);
|
|
54
|
+
void rb_vm_pop_cfunc_frame(void);
|
|
55
|
+
void rb_vm_check_redefinition_by_prepend(VALUE klass);
|
|
56
|
+
int rb_vm_check_optimizable_mid(VALUE mid);
|
|
57
|
+
VALUE rb_yield_refine_block(VALUE refinement, VALUE refinements);
|
|
58
|
+
VALUE ruby_vm_special_exception_copy(VALUE);
|
|
59
|
+
|
|
60
|
+
void rb_lastline_set_up(VALUE val, unsigned int up);
|
|
61
|
+
|
|
62
|
+
/* vm_eval.c */
|
|
63
|
+
VALUE rb_current_realfilepath(void);
|
|
64
|
+
VALUE rb_check_block_call(VALUE, ID, int, const VALUE *, rb_block_call_func_t, VALUE);
|
|
65
|
+
typedef void rb_check_funcall_hook(int, VALUE, ID, int, const VALUE *, VALUE);
|
|
66
|
+
VALUE rb_check_funcall_with_hook_kw(VALUE recv, ID mid, int argc, const VALUE *argv,
|
|
67
|
+
rb_check_funcall_hook *hook, VALUE arg, int kw_splat);
|
|
68
|
+
const char *rb_type_str(enum ruby_value_type type);
|
|
69
|
+
VALUE rb_check_funcall_default(VALUE, ID, int, const VALUE *, VALUE);
|
|
70
|
+
VALUE rb_check_funcall_basic_kw(VALUE, ID, VALUE, int, const VALUE*, int);
|
|
71
|
+
VALUE rb_yield_1(VALUE val);
|
|
72
|
+
VALUE rb_ec_yield(struct rb_execution_context_struct *ec, VALUE val);
|
|
73
|
+
VALUE rb_yield_force_blockarg(VALUE values);
|
|
74
|
+
VALUE rb_lambda_call(VALUE obj, ID mid, int argc, const VALUE *argv,
|
|
75
|
+
rb_block_call_func_t bl_proc, int min_argc, int max_argc,
|
|
76
|
+
VALUE data2);
|
|
77
|
+
void rb_check_stack_overflow(void);
|
|
78
|
+
#define RB_BLOCK_NO_USE_PACKED_ARGS 2
|
|
79
|
+
VALUE rb_block_call2(VALUE obj, ID mid, int argc, const VALUE *argv, rb_block_call_func_t bl_proc, VALUE data2, long flags);
|
|
80
|
+
struct vm_ifunc *rb_current_ifunc(void);
|
|
81
|
+
VALUE rb_gccct_clear_table(VALUE);
|
|
82
|
+
VALUE rb_eval_cmd_call_kw(VALUE cmd, int argc, const VALUE *argv, int kw_splat);
|
|
83
|
+
|
|
84
|
+
#if USE_YJIT || USE_ZJIT
|
|
85
|
+
/* vm_exec.c */
|
|
86
|
+
extern uint64_t rb_vm_insn_count;
|
|
87
|
+
#endif
|
|
88
|
+
|
|
89
|
+
extern bool rb_free_at_exit;
|
|
90
|
+
|
|
91
|
+
/* miniinit.c and builtin.c */
|
|
92
|
+
void rb_free_loaded_builtin_table(void);
|
|
93
|
+
|
|
94
|
+
/* vm_insnhelper.c */
|
|
95
|
+
VALUE rb_equal_opt(VALUE obj1, VALUE obj2);
|
|
96
|
+
VALUE rb_eql_opt(VALUE obj1, VALUE obj2);
|
|
97
|
+
|
|
98
|
+
struct rb_iseq_struct;
|
|
99
|
+
const struct rb_callcache *rb_vm_search_method_slowpath(const struct rb_callinfo *ci, VALUE klass);
|
|
100
|
+
|
|
101
|
+
/* vm_method.c */
|
|
102
|
+
int rb_ec_obj_respond_to(struct rb_execution_context_struct *ec, VALUE obj, ID id, int priv);
|
|
103
|
+
|
|
104
|
+
void rb_clear_constant_cache(void);
|
|
105
|
+
|
|
106
|
+
/* vm_dump.c */
|
|
107
|
+
void rb_print_backtrace(FILE *);
|
|
108
|
+
|
|
109
|
+
/* vm_backtrace.c */
|
|
110
|
+
VALUE rb_vm_thread_backtrace(int argc, const VALUE *argv, VALUE thval);
|
|
111
|
+
VALUE rb_vm_thread_backtrace_locations(int argc, const VALUE *argv, VALUE thval);
|
|
112
|
+
VALUE rb_vm_backtrace(int argc, const VALUE * argv, struct rb_execution_context_struct * ec);
|
|
113
|
+
VALUE rb_vm_backtrace_locations(int argc, const VALUE * argv, struct rb_execution_context_struct * ec);
|
|
114
|
+
VALUE rb_make_backtrace(void);
|
|
115
|
+
void rb_backtrace_print_as_bugreport(FILE*);
|
|
116
|
+
int rb_backtrace_p(VALUE obj);
|
|
117
|
+
VALUE rb_backtrace_to_str_ary(VALUE obj);
|
|
118
|
+
VALUE rb_backtrace_to_location_ary(VALUE obj);
|
|
119
|
+
VALUE rb_location_ary_to_backtrace(VALUE ary);
|
|
120
|
+
void rb_backtrace_each(VALUE (*iter)(VALUE recv, VALUE str), VALUE output);
|
|
121
|
+
int rb_frame_info_p(VALUE obj);
|
|
122
|
+
int rb_get_node_id_from_frame_info(VALUE obj);
|
|
123
|
+
const struct rb_iseq_struct *rb_get_iseq_from_frame_info(VALUE obj);
|
|
124
|
+
|
|
125
|
+
VALUE rb_ec_backtrace_object(const struct rb_execution_context_struct *ec);
|
|
126
|
+
|
|
127
|
+
#define RUBY_DTRACE_CREATE_HOOK(name, arg) \
|
|
128
|
+
RUBY_DTRACE_HOOK(name##_CREATE, arg)
|
|
129
|
+
#define RUBY_DTRACE_HOOK(name, arg) \
|
|
130
|
+
do { \
|
|
131
|
+
if (UNLIKELY(RUBY_DTRACE_##name##_ENABLED())) { \
|
|
132
|
+
int dtrace_line; \
|
|
133
|
+
const char *dtrace_file = rb_source_location_cstr(&dtrace_line); \
|
|
134
|
+
if (!dtrace_file) dtrace_file = ""; \
|
|
135
|
+
RUBY_DTRACE_##name(arg, dtrace_file, dtrace_line); \
|
|
136
|
+
} \
|
|
137
|
+
} while (0)
|
|
138
|
+
#endif /* INTERNAL_VM_H */
|
|
@@ -58,9 +58,6 @@
|
|
|
58
58
|
/* internal/array.h */
|
|
59
59
|
#define rb_ary_new_from_args(...) rb_nonexistent_symbol(__VA_ARGS__)
|
|
60
60
|
|
|
61
|
-
/* internal/io.h */
|
|
62
|
-
#define rb_io_fptr_finalize(...) rb_nonexistent_symbol(__VA_ARGS__)
|
|
63
|
-
|
|
64
61
|
/* internal/string.h */
|
|
65
62
|
#define rb_fstring_cstr(...) rb_nonexistent_symbol(__VA_ARGS__)
|
|
66
63
|
|