From b67d76b3a63cea04af8d6d1536d67a5d259cb8aa Mon Sep 17 00:00:00 2001 From: normal Date: Tue, 23 Oct 2018 03:47:45 +0000 Subject: Revert "vm_trace: implement postponed_jobs as st_table" This reverts commit 5a1dfb04bc2b09fcf8f3427cac72d0ce52a45eb2 (r63451) And mark the functions as async-signal-safe while we're at it to prevent future developers from making the same mistake as I did :x git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/debug.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/ruby') diff --git a/include/ruby/debug.h b/include/ruby/debug.h index 0456c73b9c..8a831e61ab 100644 --- a/include/ruby/debug.h +++ b/include/ruby/debug.h @@ -83,7 +83,11 @@ VALUE rb_tracearg_return_value(rb_trace_arg_t *trace_arg); VALUE rb_tracearg_raised_exception(rb_trace_arg_t *trace_arg); VALUE rb_tracearg_object(rb_trace_arg_t *trace_arg); -/* Postponed Job API */ +/* + * Postponed Job API + * rb_postponed_job_register and rb_postponed_job_register_one are + * async-signal-safe and used via SIGPROF by the "stackprof" RubyGem + */ typedef void (*rb_postponed_job_func_t)(void *arg); int rb_postponed_job_register(unsigned int flags, rb_postponed_job_func_t func, void *data); int rb_postponed_job_register_one(unsigned int flags, rb_postponed_job_func_t func, void *data); -- cgit v1.2.3