Skip to content

Commit

Permalink
[PROF-8667] Support special consts in ruby_obj_memsize_of
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexJF committed Dec 22, 2023
1 parent 1579489 commit 72a056e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/ddtrace_profiling_native_extension/ruby_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ size_t rb_obj_memsize_of(VALUE obj);

// Wrapper around rb_obj_memsize_of to avoid hitting crashing paths.
size_t ruby_obj_memsize_of(VALUE obj) {
switch (BUILTIN_TYPE(obj)) {
switch (rb_type(obj)) {
case T_OBJECT:
case T_MODULE:
case T_CLASS:
Expand Down

0 comments on commit 72a056e

Please sign in to comment.