6161#include "ruby/version.h"
6262#include "ruby/internal/error.h"
6363
64- #ifdef USE_THIRD_PARTY_HEAP
64+ #if USE_MMTK
6565#include "gc.h"
6666#endif
6767
@@ -291,7 +291,7 @@ usage(const char *name, int help, int highlight, int columns)
291291#if YJIT_BUILD
292292 M ("--yjit" , "" , "enable in-process JIT compiler (experimental)" ),
293293#endif
294- #ifdef USE_THIRD_PARTY_HEAP
294+ #if USE_MMTK
295295 M ("--mmtk" , "" , "use MMTk for garbage collection (experimental)" ),
296296#endif
297297 M ("-h" , "" , "show this message, --help for more info" ),
@@ -328,7 +328,7 @@ usage(const char *name, int help, int highlight, int columns)
328328#if YJIT_BUILD
329329 M ("yjit" , "" , "in-process JIT compiler (default: disabled)" ),
330330#endif
331- #ifdef USE_THIRD_PARTY_HEAP
331+ #if USE_MMTK
332332 M ("mmtk" , "" , "MMTk garbage collection (default: disabled)" ),
333333#endif
334334 };
@@ -350,7 +350,7 @@ usage(const char *name, int help, int highlight, int columns)
350350 M ("--yjit-greedy-versioning" , "" , "Greedy versioning mode (default: disabled)" ),
351351 };
352352#endif
353- #ifdef USE_THIRD_PARTY_HEAP
353+ #if USE_MMTK
354354 static const struct ruby_opt_message mmtk_options [] = {
355355 M ("--mmtk-plan=name" , "" , "MMTk garbage collection plan to use (default: " MMTK_DEFAULT_PLAN ")" ),
356356 };
@@ -391,7 +391,7 @@ usage(const char *name, int help, int highlight, int columns)
391391 for (i = 0 ; i < numberof (yjit_options ); ++ i )
392392 SHOW (yjit_options [i ]);
393393#endif
394- #ifdef USE_THIRD_PARTY_HEAP
394+ #if USE_MMTK
395395 printf ("%s" "MMTk options (experimental):%s\n" , sb , se );
396396 for (i = 0 ; i < numberof (mmtk_options ); ++ i )
397397 SHOW (mmtk_options [i ]);
@@ -1468,7 +1468,7 @@ proc_options(long argc, char **argv, ruby_cmdline_options_t *opt, int envopt)
14681468#endif
14691469 }
14701470 else if (is_option_with_optarg ("mmtk ", '- ', true, false, false)) {
1471- #ifdef USE_THIRD_PARTY_HEAP
1471+ #if USE_MMTK
14721472 FEATURE_SET (opt -> features , FEATURE_BIT (mmtk ));
14731473 rb_mmtk_post_process_opts (s );
14741474#undef opt_match_noarg
@@ -1841,7 +1841,7 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt)
18411841 FEATURE_SET_RESTORE (opt -> warn , warn );
18421842 }
18431843
1844- #ifdef USE_THIRD_PARTY_HEAP
1844+ #if USE_MMTK
18451845 rb_mmtk_post_process_opts_finish (FEATURE_SET_P (opt -> features , mmtk ));
18461846#endif
18471847
0 commit comments