Skip to content

Commit 5f5aa4f

Browse files
authored
Merge pull request #63 from eileencodes/fix-undeclared-function-rb_mmtk_enabled_p
Fix undeclared function `rb_mmtk_enabled_p` when compiling
2 parents f014f8b + 7556cec commit 5f5aa4f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

error.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ rb_bug_for_fatal_signal(ruby_sighandler_t default_sighandler, int sig, const voi
10701070
const char *file = NULL;
10711071
int line = 0;
10721072

1073-
#ifdef USE_MMTK
1073+
#if USE_MMTK
10741074
// When using MMTk, this function may be called from GC worker threads,
10751075
// in which case there will not be a Ruby execution context.
10761076
if (rb_current_execution_context(!rb_mmtk_enabled_p())) {

gc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -10070,7 +10070,7 @@ rb_gc_prepare_heap(void)
1007010070
static int
1007110071
gc_is_moveable_obj(rb_objspace_t *objspace, VALUE obj)
1007210072
{
10073-
#ifdef USE_MMTK
10073+
#if USE_MMTK
1007410074
if (rb_mmtk_enabled_p()) {
1007510075
rb_bug("Function %s should not be called when MMTk is enabled.", RUBY_FUNCTION_NAME_STRING);
1007610076
}

0 commit comments

Comments
 (0)