1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/-test-/thread/instrumentation/depend
Jean Boussier 9125374726 [Feature #18339] GVL Instrumentation API
Ref: https://bugs.ruby-lang.org/issues/18339

Design:

- This tries to minimize the overhead when no hook is registered.
  It should only incur an extra unsynchronized boolean check.
- The hook list is protected with a read-write lock as to cause
  contention when some hooks are registered.
- The hooks MUST be thread safe, and MUST NOT call into Ruby as they
  are executed outside the GVL.
- It's simply a noop on Windows.

API:

```
rb_internal_thread_event_hook_t * rb_internal_thread_add_event_hook(rb_internal_thread_event_callback callback, rb_event_flag_t internal_event, void *user_data);
bool rb_internal_thread_remove_event_hook(rb_internal_thread_event_hook_t * hook);
```

You can subscribe to 3 events:

  - READY: called right before attempting to acquire the GVL
  - RESUMED: called right after successfully acquiring the GVL
  - SUSPENDED: called right after releasing the GVL.

The hooks MUST be threadsafe, as they are executed outside of the GVL, they also MUST NOT call any Ruby API.
2022-06-03 15:13:33 +02:00

164 lines
9 KiB
Text

# AUTOGENERATED DEPENDENCIES START
instrumentation.o: $(RUBY_EXTCONF_H)
instrumentation.o: $(arch_hdrdir)/ruby/config.h
instrumentation.o: $(hdrdir)/ruby/assert.h
instrumentation.o: $(hdrdir)/ruby/atomic.h
instrumentation.o: $(hdrdir)/ruby/backward.h
instrumentation.o: $(hdrdir)/ruby/backward/2/assume.h
instrumentation.o: $(hdrdir)/ruby/backward/2/attributes.h
instrumentation.o: $(hdrdir)/ruby/backward/2/bool.h
instrumentation.o: $(hdrdir)/ruby/backward/2/inttypes.h
instrumentation.o: $(hdrdir)/ruby/backward/2/limits.h
instrumentation.o: $(hdrdir)/ruby/backward/2/long_long.h
instrumentation.o: $(hdrdir)/ruby/backward/2/stdalign.h
instrumentation.o: $(hdrdir)/ruby/backward/2/stdarg.h
instrumentation.o: $(hdrdir)/ruby/defines.h
instrumentation.o: $(hdrdir)/ruby/intern.h
instrumentation.o: $(hdrdir)/ruby/internal/abi.h
instrumentation.o: $(hdrdir)/ruby/internal/anyargs.h
instrumentation.o: $(hdrdir)/ruby/internal/arithmetic.h
instrumentation.o: $(hdrdir)/ruby/internal/arithmetic/char.h
instrumentation.o: $(hdrdir)/ruby/internal/arithmetic/double.h
instrumentation.o: $(hdrdir)/ruby/internal/arithmetic/fixnum.h
instrumentation.o: $(hdrdir)/ruby/internal/arithmetic/gid_t.h
instrumentation.o: $(hdrdir)/ruby/internal/arithmetic/int.h
instrumentation.o: $(hdrdir)/ruby/internal/arithmetic/intptr_t.h
instrumentation.o: $(hdrdir)/ruby/internal/arithmetic/long.h
instrumentation.o: $(hdrdir)/ruby/internal/arithmetic/long_long.h
instrumentation.o: $(hdrdir)/ruby/internal/arithmetic/mode_t.h
instrumentation.o: $(hdrdir)/ruby/internal/arithmetic/off_t.h
instrumentation.o: $(hdrdir)/ruby/internal/arithmetic/pid_t.h
instrumentation.o: $(hdrdir)/ruby/internal/arithmetic/short.h
instrumentation.o: $(hdrdir)/ruby/internal/arithmetic/size_t.h
instrumentation.o: $(hdrdir)/ruby/internal/arithmetic/st_data_t.h
instrumentation.o: $(hdrdir)/ruby/internal/arithmetic/uid_t.h
instrumentation.o: $(hdrdir)/ruby/internal/assume.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/alloc_size.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/artificial.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/cold.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/const.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/constexpr.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/deprecated.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/diagnose_if.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/enum_extensibility.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/error.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/flag_enum.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/forceinline.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/format.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/maybe_unused.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/noalias.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/nodiscard.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/noexcept.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/noinline.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/nonnull.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/noreturn.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/pure.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/restrict.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/returns_nonnull.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/warning.h
instrumentation.o: $(hdrdir)/ruby/internal/attr/weakref.h
instrumentation.o: $(hdrdir)/ruby/internal/cast.h
instrumentation.o: $(hdrdir)/ruby/internal/compiler_is.h
instrumentation.o: $(hdrdir)/ruby/internal/compiler_is/apple.h
instrumentation.o: $(hdrdir)/ruby/internal/compiler_is/clang.h
instrumentation.o: $(hdrdir)/ruby/internal/compiler_is/gcc.h
instrumentation.o: $(hdrdir)/ruby/internal/compiler_is/intel.h
instrumentation.o: $(hdrdir)/ruby/internal/compiler_is/msvc.h
instrumentation.o: $(hdrdir)/ruby/internal/compiler_is/sunpro.h
instrumentation.o: $(hdrdir)/ruby/internal/compiler_since.h
instrumentation.o: $(hdrdir)/ruby/internal/config.h
instrumentation.o: $(hdrdir)/ruby/internal/constant_p.h
instrumentation.o: $(hdrdir)/ruby/internal/core.h
instrumentation.o: $(hdrdir)/ruby/internal/core/rarray.h
instrumentation.o: $(hdrdir)/ruby/internal/core/rbasic.h
instrumentation.o: $(hdrdir)/ruby/internal/core/rbignum.h
instrumentation.o: $(hdrdir)/ruby/internal/core/rclass.h
instrumentation.o: $(hdrdir)/ruby/internal/core/rdata.h
instrumentation.o: $(hdrdir)/ruby/internal/core/rfile.h
instrumentation.o: $(hdrdir)/ruby/internal/core/rhash.h
instrumentation.o: $(hdrdir)/ruby/internal/core/robject.h
instrumentation.o: $(hdrdir)/ruby/internal/core/rregexp.h
instrumentation.o: $(hdrdir)/ruby/internal/core/rstring.h
instrumentation.o: $(hdrdir)/ruby/internal/core/rstruct.h
instrumentation.o: $(hdrdir)/ruby/internal/core/rtypeddata.h
instrumentation.o: $(hdrdir)/ruby/internal/ctype.h
instrumentation.o: $(hdrdir)/ruby/internal/dllexport.h
instrumentation.o: $(hdrdir)/ruby/internal/dosish.h
instrumentation.o: $(hdrdir)/ruby/internal/error.h
instrumentation.o: $(hdrdir)/ruby/internal/eval.h
instrumentation.o: $(hdrdir)/ruby/internal/event.h
instrumentation.o: $(hdrdir)/ruby/internal/fl_type.h
instrumentation.o: $(hdrdir)/ruby/internal/gc.h
instrumentation.o: $(hdrdir)/ruby/internal/glob.h
instrumentation.o: $(hdrdir)/ruby/internal/globals.h
instrumentation.o: $(hdrdir)/ruby/internal/has/attribute.h
instrumentation.o: $(hdrdir)/ruby/internal/has/builtin.h
instrumentation.o: $(hdrdir)/ruby/internal/has/c_attribute.h
instrumentation.o: $(hdrdir)/ruby/internal/has/cpp_attribute.h
instrumentation.o: $(hdrdir)/ruby/internal/has/declspec_attribute.h
instrumentation.o: $(hdrdir)/ruby/internal/has/extension.h
instrumentation.o: $(hdrdir)/ruby/internal/has/feature.h
instrumentation.o: $(hdrdir)/ruby/internal/has/warning.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/array.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/bignum.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/class.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/compar.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/complex.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/cont.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/dir.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/enum.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/enumerator.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/error.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/eval.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/file.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/gc.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/hash.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/io.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/load.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/marshal.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/numeric.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/object.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/parse.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/proc.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/process.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/random.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/range.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/rational.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/re.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/ruby.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/select.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/select/largesize.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/signal.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/sprintf.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/string.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/struct.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/thread.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/time.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/variable.h
instrumentation.o: $(hdrdir)/ruby/internal/intern/vm.h
instrumentation.o: $(hdrdir)/ruby/internal/interpreter.h
instrumentation.o: $(hdrdir)/ruby/internal/iterator.h
instrumentation.o: $(hdrdir)/ruby/internal/memory.h
instrumentation.o: $(hdrdir)/ruby/internal/method.h
instrumentation.o: $(hdrdir)/ruby/internal/module.h
instrumentation.o: $(hdrdir)/ruby/internal/newobj.h
instrumentation.o: $(hdrdir)/ruby/internal/rgengc.h
instrumentation.o: $(hdrdir)/ruby/internal/scan_args.h
instrumentation.o: $(hdrdir)/ruby/internal/special_consts.h
instrumentation.o: $(hdrdir)/ruby/internal/static_assert.h
instrumentation.o: $(hdrdir)/ruby/internal/stdalign.h
instrumentation.o: $(hdrdir)/ruby/internal/stdbool.h
instrumentation.o: $(hdrdir)/ruby/internal/symbol.h
instrumentation.o: $(hdrdir)/ruby/internal/value.h
instrumentation.o: $(hdrdir)/ruby/internal/value_type.h
instrumentation.o: $(hdrdir)/ruby/internal/variable.h
instrumentation.o: $(hdrdir)/ruby/internal/warning_push.h
instrumentation.o: $(hdrdir)/ruby/internal/xmalloc.h
instrumentation.o: $(hdrdir)/ruby/missing.h
instrumentation.o: $(hdrdir)/ruby/ruby.h
instrumentation.o: $(hdrdir)/ruby/st.h
instrumentation.o: $(hdrdir)/ruby/subst.h
instrumentation.o: $(hdrdir)/ruby/thread.h
instrumentation.o: $(hdrdir)/ruby/thread_native.h
instrumentation.o: instrumentation.c
# AUTOGENERATED DEPENDENCIES END