Skip to content

Commit 47b1706

Browse files
committed
Fix missing argument in function that's only used on Ruby 3.2+
I was testing on 3.1 so I missed this one >_>
1 parent 10e4def commit 47b1706

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/datadog_profiling_native_extension/collectors_thread_context.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1968,7 +1968,8 @@ static uint64_t otel_span_id_to_uint(VALUE otel_span_id) {
19681968
gvl_waiting_started_wall_time_ns,
19691969
NULL,
19701970
NULL,
1971-
false // This is the extra sample before the wait begun; only the next sample will be in the gvl waiting state
1971+
/* is_gvl_waiting_state: */ false, // This is the extra sample before the wait begun; only the next sample will be in the gvl waiting state
1972+
/* is_safe_to_allocate_objects: */ true // This is similar to a regular cpu/wall sample, so it's also safe
19721973
);
19731974
}
19741975

0 commit comments

Comments
 (0)