Skip to content

Commit 962845d

Browse files
committed
wip
Signed-off-by: Marco Costa <[email protected]>
1 parent 19db45e commit 962845d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

ext/datadog_profiling_native_extension/profiling.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ void DDTRACE_EXPORT Init_datadog_profiling_native_extension(void) {
5555
rb_define_singleton_method(native_extension_module, "native_working?", native_working_p, 0);
5656
rb_funcall(native_extension_module, rb_intern("private_class_method"), 1, ID2SYM(rb_intern("native_working?")));
5757

58-
// Initialize the exception class references
59-
// These exception classes should be defined in Ruby code (lib/datadog/profiling.rb)
60-
// TODO: Can these classes be defined in Ruby? Will it work outside of GIL?
58+
// Exception classes defined in Ruby, in the `Datadog::Profiling` namespace
6159
eNativeRuntimeError = rb_const_get(profiling_module, rb_intern("NativeRuntimeError"));
6260
rb_global_variable(&eNativeRuntimeError);
6361
eNativeArgumentError = rb_const_get(profiling_module, rb_intern("NativeArgumentError"));

ext/datadog_profiling_native_extension/ruby_helpers.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ static ID _id2ref_id = Qnil;
1212
static ID inspect_id = Qnil;
1313
static ID to_s_id = Qnil;
1414
static ID new_id = 0;
15-
// Global references to Datadog::Profiling exception classes
16-
// TODO: Can these classes be defined in Ruby? Will it work outside of GIL?
15+
16+
// Global references to Datadog::Profiling exception classes defined in Ruby.
1717
VALUE eNativeRuntimeError = Qnil;
1818
VALUE eNativeArgumentError = Qnil;
1919
VALUE eNativeTypeError = Qnil;

0 commit comments

Comments
 (0)