summaryrefslogtreecommitdiff
path: root/vm_trace.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2023-12-10 01:47:14 +0900
committerKoichi Sasada <ko1@atdot.net>2023-12-10 15:39:06 +0900
commitc4c39082af3520cd96aefc2219a7037865f3f710 (patch)
tree7a2c90b4689c512fa18a5367b18873ec437cece2 /vm_trace.c
parentf8effa209adb3ce050c100ffaffe6f3cc1508185 (diff)
add `flags` to `rb_postponed_job_preregister`
for future extensions.
Diffstat (limited to 'vm_trace.c')
-rw-r--r--vm_trace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_trace.c b/vm_trace.c
index dc4c4738b8..4b97288f23 100644
--- a/vm_trace.c
+++ b/vm_trace.c
@@ -1741,7 +1741,7 @@ rb_vm_memsize_postponed_job_queue(void)
rb_postponed_job_handle_t
-rb_postponed_job_preregister(rb_postponed_job_func_t func, void *data)
+rb_postponed_job_preregister(unsigned int flags, rb_postponed_job_func_t func, void *data)
{
/* The doc comments say that this function should be called under the GVL, because
* that is actually required to get the guarantee that "if a given (func, data) pair
@@ -1789,7 +1789,7 @@ pjob_register_legacy_impl(unsigned int flags, rb_postponed_job_func_t func, void
{
/* We _know_ calling preregister from a signal handler like this is racy; what is
* and is not promised is very exhaustively documented in debug.h */
- rb_postponed_job_handle_t h = rb_postponed_job_preregister(func, data);
+ rb_postponed_job_handle_t h = rb_postponed_job_preregister(0, func, data);
if (h == POSTPONED_JOB_HANDLE_INVALID) {
return 0;
}