e41f67
--- ruby-3.1.2/gc.rbinc	2022-04-12 13:11:17.000000000 +0200
e41f67
+++ ruby/gc.rbinc	2022-06-08 12:49:16.288024971 +0200
e41f67
@@ -9,27 +9,27 @@
e41f67
 #include "builtin.h"                /* for RB_BUILTIN_FUNCTION */
e41f67
 struct rb_execution_context_struct; /* in vm_core.h */
e41f67
 
e41f67
-static VALUE builtin_inline_class_277(struct rb_execution_context_struct *ec, const VALUE self)
e41f67
+static VALUE builtin_inline_class_209(struct rb_execution_context_struct *ec, const VALUE self)
e41f67
 {
e41f67
 MAYBE_UNUSED(const VALUE) flag = rb_vm_lvar(ec, -3);
e41f67
-#line 277 "gc.rb"
e41f67
+#line 209 "gc.rb"
e41f67
 
e41f67
       rb_objspace.flags.measure_gc = RTEST(flag) ? TRUE : FALSE;
e41f67
       return flag;
e41f67
 #line 20 "gc.rbinc"
e41f67
 }
e41f67
 
e41f67
-static VALUE builtin_inline_class_289(struct rb_execution_context_struct *ec, const VALUE self)
e41f67
+static VALUE builtin_inline_class_221(struct rb_execution_context_struct *ec, const VALUE self)
e41f67
 {
e41f67
-#line 289 "gc.rb"
e41f67
+#line 221 "gc.rb"
e41f67
 return 
e41f67
       RBOOL(rb_objspace.flags.measure_gc);
e41f67
 #line 28 "gc.rbinc"
e41f67
 }
e41f67
 
e41f67
-static VALUE builtin_inline_class_299(struct rb_execution_context_struct *ec, const VALUE self)
e41f67
+static VALUE builtin_inline_class_231(struct rb_execution_context_struct *ec, const VALUE self)
e41f67
 {
e41f67
-#line 299 "gc.rb"
e41f67
+#line 231 "gc.rb"
e41f67
 return 
e41f67
       ULL2NUM(rb_objspace.profile.total_time_ns);
e41f67
 #line 36 "gc.rbinc"
e41f67
@@ -52,31 +52,6 @@
e41f67
 }
e41f67
 
e41f67
 static void
e41f67
-mjit_compile_invokebuiltin_for_gc_get_auto_compact(FILE *f, long index, unsigned stack_size, bool inlinable_p)
e41f67
-{
e41f67
-    fprintf(f, "    VALUE self = GET_SELF();\n");
e41f67
-    fprintf(f, "    typedef VALUE (*func)(rb_execution_context_t *, VALUE);\n");
e41f67
-    fprintf(f, "    func f = (func)%"PRIuVALUE"; /* == gc_get_auto_compact */\n", (VALUE)gc_get_auto_compact);
e41f67
-    fprintf(f, "    val = f(ec, self);\n");
e41f67
-}
e41f67
-
e41f67
-static void
e41f67
-mjit_compile_invokebuiltin_for_gc_set_auto_compact(FILE *f, long index, unsigned stack_size, bool inlinable_p)
e41f67
-{
e41f67
-    fprintf(f, "    VALUE self = GET_SELF();\n");
e41f67
-    fprintf(f, "    typedef VALUE (*func)(rb_execution_context_t *, VALUE, VALUE);\n");
e41f67
-    if (index == -1) {
e41f67
-        fprintf(f, "    const VALUE *argv = &stack[%d];\n", stack_size - 1);
e41f67
-    }
e41f67
-    else {
e41f67
-        fprintf(f, "    const unsigned int lnum = GET_ISEQ()->body->local_table_size;\n");
e41f67
-        fprintf(f, "    const VALUE *argv = GET_EP() - lnum - VM_ENV_DATA_SIZE + 1 + %ld;\n", index);
e41f67
-    }
e41f67
-    fprintf(f, "    func f = (func)%"PRIuVALUE"; /* == gc_set_auto_compact */\n", (VALUE)gc_set_auto_compact);
e41f67
-    fprintf(f, "    val = f(ec, self, argv[0]);\n");
e41f67
-}
e41f67
-
e41f67
-static void
e41f67
 mjit_compile_invokebuiltin_for_gc_enable(FILE *f, long index, unsigned stack_size, bool inlinable_p)
e41f67
 {
e41f67
     fprintf(f, "    VALUE self = GET_SELF();\n");
e41f67
@@ -161,40 +136,6 @@
e41f67
 }
e41f67
 
e41f67
 static void
e41f67
-mjit_compile_invokebuiltin_for_gc_compact_stats(FILE *f, long index, unsigned stack_size, bool inlinable_p)
e41f67
-{
e41f67
-    fprintf(f, "    VALUE self = GET_SELF();\n");
e41f67
-    fprintf(f, "    typedef VALUE (*func)(rb_execution_context_t *, VALUE);\n");
e41f67
-    fprintf(f, "    func f = (func)%"PRIuVALUE"; /* == gc_compact_stats */\n", (VALUE)gc_compact_stats);
e41f67
-    fprintf(f, "    val = f(ec, self);\n");
e41f67
-}
e41f67
-
e41f67
-static void
e41f67
-mjit_compile_invokebuiltin_for_gc_compact(FILE *f, long index, unsigned stack_size, bool inlinable_p)
e41f67
-{
e41f67
-    fprintf(f, "    VALUE self = GET_SELF();\n");
e41f67
-    fprintf(f, "    typedef VALUE (*func)(rb_execution_context_t *, VALUE);\n");
e41f67
-    fprintf(f, "    func f = (func)%"PRIuVALUE"; /* == gc_compact */\n", (VALUE)gc_compact);
e41f67
-    fprintf(f, "    val = f(ec, self);\n");
e41f67
-}
e41f67
-
e41f67
-static void
e41f67
-mjit_compile_invokebuiltin_for_gc_verify_compaction_references(FILE *f, long index, unsigned stack_size, bool inlinable_p)
e41f67
-{
e41f67
-    fprintf(f, "    VALUE self = GET_SELF();\n");
e41f67
-    fprintf(f, "    typedef VALUE (*func)(rb_execution_context_t *, VALUE, VALUE, VALUE);\n");
e41f67
-    if (index == -1) {
e41f67
-        fprintf(f, "    const VALUE *argv = &stack[%d];\n", stack_size - 2);
e41f67
-    }
e41f67
-    else {
e41f67
-        fprintf(f, "    const unsigned int lnum = GET_ISEQ()->body->local_table_size;\n");
e41f67
-        fprintf(f, "    const VALUE *argv = GET_EP() - lnum - VM_ENV_DATA_SIZE + 1 + %ld;\n", index);
e41f67
-    }
e41f67
-    fprintf(f, "    func f = (func)%"PRIuVALUE"; /* == gc_verify_compaction_references */\n", (VALUE)gc_verify_compaction_references);
e41f67
-    fprintf(f, "    val = f(ec, self, argv[0], argv[1]);\n");
e41f67
-}
e41f67
-
e41f67
-static void
e41f67
 mjit_compile_invokebuiltin_for__bi0(FILE *f, long index, unsigned stack_size, bool inlinable_p)
e41f67
 {
e41f67
     fprintf(f, "    VALUE self = GET_SELF();\n");
e41f67
@@ -202,7 +143,7 @@
e41f67
     if (inlinable_p) {
e41f67
         fprintf(f, "%s", "    {\n");
e41f67
         fprintf(f, "%s", "    MAYBE_UNUSED(const VALUE) flag = rb_vm_lvar(ec, -3);\n");
e41f67
-        fprintf(f, "%s", "#line 277 \"gc.rb\"\n");
e41f67
+        fprintf(f, "%s", "#line 209 \"gc.rb\"\n");
e41f67
         fprintf(f, "%s", "    \n");
e41f67
         fprintf(f, "%s", "          rb_objspace.flags.measure_gc = RTEST(flag) ? TRUE : FALSE;\n");
e41f67
         fprintf(f, "%s", "          return flag;\n");
e41f67
@@ -211,7 +152,7 @@
e41f67
         fprintf(f, "%s", "    \n");
e41f67
         return;
e41f67
     }
e41f67
-    fprintf(f, "    func f = (func)%"PRIuVALUE"; /* == builtin_inline_class_277 */\n", (VALUE)builtin_inline_class_277);
e41f67
+    fprintf(f, "    func f = (func)%"PRIuVALUE"; /* == builtin_inline_class_209 */\n", (VALUE)builtin_inline_class_209);
e41f67
     fprintf(f, "    val = f(ec, self);\n");
e41f67
 }
e41f67
 
e41f67
@@ -222,7 +163,7 @@
e41f67
     fprintf(f, "    typedef VALUE (*func)(rb_execution_context_t *, VALUE);\n");
e41f67
     if (inlinable_p) {
e41f67
         fprintf(f, "%s", "    {\n");
e41f67
-        fprintf(f, "%s", "#line 289 \"gc.rb\"\n");
e41f67
+        fprintf(f, "%s", "#line 221 \"gc.rb\"\n");
e41f67
         fprintf(f, "%s", "    return \n");
e41f67
         fprintf(f, "%s", "          RBOOL(rb_objspace.flags.measure_gc);\n");
e41f67
         fprintf(f, "%s", "#line 52 \"gc.rbinc\"\n");
e41f67
@@ -230,7 +171,7 @@
e41f67
         fprintf(f, "%s", "    \n");
e41f67
         return;
e41f67
     }
e41f67
-    fprintf(f, "    func f = (func)%"PRIuVALUE"; /* == builtin_inline_class_289 */\n", (VALUE)builtin_inline_class_289);
e41f67
+    fprintf(f, "    func f = (func)%"PRIuVALUE"; /* == builtin_inline_class_221 */\n", (VALUE)builtin_inline_class_221);
e41f67
     fprintf(f, "    val = f(ec, self);\n");
e41f67
 }
e41f67
 
e41f67
@@ -241,7 +182,7 @@
e41f67
     fprintf(f, "    typedef VALUE (*func)(rb_execution_context_t *, VALUE);\n");
e41f67
     if (inlinable_p) {
e41f67
         fprintf(f, "%s", "    {\n");
e41f67
-        fprintf(f, "%s", "#line 299 \"gc.rb\"\n");
e41f67
+        fprintf(f, "%s", "#line 231 \"gc.rb\"\n");
e41f67
         fprintf(f, "%s", "    return \n");
e41f67
         fprintf(f, "%s", "          ULL2NUM(rb_objspace.profile.total_time_ns);\n");
e41f67
         fprintf(f, "%s", "#line 59 \"gc.rbinc\"\n");
e41f67
@@ -249,7 +190,7 @@
e41f67
         fprintf(f, "%s", "    \n");
e41f67
         return;
e41f67
     }
e41f67
-    fprintf(f, "    func f = (func)%"PRIuVALUE"; /* == builtin_inline_class_299 */\n", (VALUE)builtin_inline_class_299);
e41f67
+    fprintf(f, "    func f = (func)%"PRIuVALUE"; /* == builtin_inline_class_231 */\n", (VALUE)builtin_inline_class_231);
e41f67
     fprintf(f, "    val = f(ec, self);\n");
e41f67
 }
e41f67
 
e41f67
@@ -258,21 +199,16 @@
e41f67
   // table definition
e41f67
   static const struct rb_builtin_function gc_table[] = {
e41f67
     RB_BUILTIN_FUNCTION(0, gc_start_internal, gc_start_internal, 4, mjit_compile_invokebuiltin_for_gc_start_internal),
e41f67
-    RB_BUILTIN_FUNCTION(1, gc_get_auto_compact, gc_get_auto_compact, 0, mjit_compile_invokebuiltin_for_gc_get_auto_compact),
e41f67
-    RB_BUILTIN_FUNCTION(2, gc_set_auto_compact, gc_set_auto_compact, 1, mjit_compile_invokebuiltin_for_gc_set_auto_compact),
e41f67
-    RB_BUILTIN_FUNCTION(3, gc_enable, gc_enable, 0, mjit_compile_invokebuiltin_for_gc_enable),
e41f67
-    RB_BUILTIN_FUNCTION(4, gc_disable, gc_disable, 0, mjit_compile_invokebuiltin_for_gc_disable),
e41f67
-    RB_BUILTIN_FUNCTION(5, gc_stress_get, gc_stress_get, 0, mjit_compile_invokebuiltin_for_gc_stress_get),
e41f67
-    RB_BUILTIN_FUNCTION(6, gc_stress_set_m, gc_stress_set_m, 1, mjit_compile_invokebuiltin_for_gc_stress_set_m),
e41f67
-    RB_BUILTIN_FUNCTION(7, gc_count, gc_count, 0, mjit_compile_invokebuiltin_for_gc_count),
e41f67
-    RB_BUILTIN_FUNCTION(8, gc_stat, gc_stat, 1, mjit_compile_invokebuiltin_for_gc_stat),
e41f67
-    RB_BUILTIN_FUNCTION(9, gc_latest_gc_info, gc_latest_gc_info, 1, mjit_compile_invokebuiltin_for_gc_latest_gc_info),
e41f67
-    RB_BUILTIN_FUNCTION(10, gc_compact_stats, gc_compact_stats, 0, mjit_compile_invokebuiltin_for_gc_compact_stats),
e41f67
-    RB_BUILTIN_FUNCTION(11, gc_compact, gc_compact, 0, mjit_compile_invokebuiltin_for_gc_compact),
e41f67
-    RB_BUILTIN_FUNCTION(12, gc_verify_compaction_references, gc_verify_compaction_references, 2, mjit_compile_invokebuiltin_for_gc_verify_compaction_references),
e41f67
-    RB_BUILTIN_FUNCTION(13, _bi0, builtin_inline_class_277, 0, mjit_compile_invokebuiltin_for__bi0),
e41f67
-    RB_BUILTIN_FUNCTION(14, _bi1, builtin_inline_class_289, 0, mjit_compile_invokebuiltin_for__bi1),
e41f67
-    RB_BUILTIN_FUNCTION(15, _bi2, builtin_inline_class_299, 0, mjit_compile_invokebuiltin_for__bi2),
e41f67
+    RB_BUILTIN_FUNCTION(1, gc_enable, gc_enable, 0, mjit_compile_invokebuiltin_for_gc_enable),
e41f67
+    RB_BUILTIN_FUNCTION(2, gc_disable, gc_disable, 0, mjit_compile_invokebuiltin_for_gc_disable),
e41f67
+    RB_BUILTIN_FUNCTION(3, gc_stress_get, gc_stress_get, 0, mjit_compile_invokebuiltin_for_gc_stress_get),
e41f67
+    RB_BUILTIN_FUNCTION(4, gc_stress_set_m, gc_stress_set_m, 1, mjit_compile_invokebuiltin_for_gc_stress_set_m),
e41f67
+    RB_BUILTIN_FUNCTION(5, gc_count, gc_count, 0, mjit_compile_invokebuiltin_for_gc_count),
e41f67
+    RB_BUILTIN_FUNCTION(6, gc_stat, gc_stat, 1, mjit_compile_invokebuiltin_for_gc_stat),
e41f67
+    RB_BUILTIN_FUNCTION(7, gc_latest_gc_info, gc_latest_gc_info, 1, mjit_compile_invokebuiltin_for_gc_latest_gc_info),
e41f67
+    RB_BUILTIN_FUNCTION(8, _bi0, builtin_inline_class_209, 0, mjit_compile_invokebuiltin_for__bi0),
e41f67
+    RB_BUILTIN_FUNCTION(9, _bi1, builtin_inline_class_221, 0, mjit_compile_invokebuiltin_for__bi1),
e41f67
+    RB_BUILTIN_FUNCTION(10, _bi2, builtin_inline_class_231, 0, mjit_compile_invokebuiltin_for__bi2),
e41f67
     RB_BUILTIN_FUNCTION(-1, NULL, NULL, 0, 0),
e41f67
   };
e41f67
 
e41f67
@@ -282,8 +218,6 @@
e41f67
 COMPILER_WARNING_ERROR(-Wincompatible-pointer-types)
e41f67
 #endif
e41f67
   if (0) rb_builtin_function_check_arity4(gc_start_internal);
e41f67
-  if (0) rb_builtin_function_check_arity0(gc_get_auto_compact);
e41f67
-  if (0) rb_builtin_function_check_arity1(gc_set_auto_compact);
e41f67
   if (0) rb_builtin_function_check_arity0(gc_enable);
e41f67
   if (0) rb_builtin_function_check_arity0(gc_disable);
e41f67
   if (0) rb_builtin_function_check_arity0(gc_stress_get);
e41f67
@@ -291,12 +225,9 @@
e41f67
   if (0) rb_builtin_function_check_arity0(gc_count);
e41f67
   if (0) rb_builtin_function_check_arity1(gc_stat);
e41f67
   if (0) rb_builtin_function_check_arity1(gc_latest_gc_info);
e41f67
-  if (0) rb_builtin_function_check_arity0(gc_compact_stats);
e41f67
-  if (0) rb_builtin_function_check_arity0(gc_compact);
e41f67
-  if (0) rb_builtin_function_check_arity2(gc_verify_compaction_references);
e41f67
-  if (0) rb_builtin_function_check_arity0(builtin_inline_class_277);
e41f67
-  if (0) rb_builtin_function_check_arity0(builtin_inline_class_289);
e41f67
-  if (0) rb_builtin_function_check_arity0(builtin_inline_class_299);
e41f67
+  if (0) rb_builtin_function_check_arity0(builtin_inline_class_209);
e41f67
+  if (0) rb_builtin_function_check_arity0(builtin_inline_class_221);
e41f67
+  if (0) rb_builtin_function_check_arity0(builtin_inline_class_231);
e41f67
 COMPILER_WARNING_POP
e41f67
 
e41f67
   // load
e41f67
--- ruby-3.1.2/miniprelude.c	2022-04-12 13:11:17.000000000 +0200
e41f67
+++ ruby/miniprelude.c	2022-06-08 12:49:16.377024871 +0200
e41f67
@@ -545,11 +545,10 @@
e41f67
 
e41f67
 static const char prelude_name2[] = "<internal:gc>";
e41f67
 static const struct {
e41f67
-    char L0[479]; /* 1..58 */
e41f67
-    char L58[508]; /* 59..204 */
e41f67
-    char L204[504]; /* 205..275 */
e41f67
-    char L275[490]; /* 276..306 */
e41f67
-    char L306[128]; /* 307..312 */
e41f67
+    char L0[492]; /* 1..70 */
e41f67
+    char L70[468]; /* 71..197 */
e41f67
+    char L197[470]; /* 198..237 */
e41f67
+    char L237[211]; /* 238..244 */
e41f67
 } prelude_code2 = {
e41f67
 #line 1 "gc.rb"
e41f67
 ""/* for gc.c */
e41f67
@@ -593,29 +592,6 @@
e41f67
 "  end\n"
e41f67
 "\n"
e41f67
 "\n"/*  call-seq: */
e41f67
-"\n"/*     GC.auto_compact    -> true or false */
e41f67
-"\n"/*  */
e41f67
-"\n"/*  Returns whether or not automatic compaction has been enabled. */
e41f67
-"\n"/*  */
e41f67
-"  def self.auto_compact\n"
e41f67
-"    Primitive.gc_get_auto_compact\n"
e41f67
-"  end\n"
e41f67
-"\n"
e41f67
-"\n"/*  call-seq: */
e41f67
-"\n"/*     GC.auto_compact = flag */
e41f67
-"\n"/*  */
e41f67
-"\n"/*  Updates automatic compaction mode. */
e41f67
-"\n"/*  */
e41f67
-"\n"/*  When enabled, the compactor will execute on every major collection. */
e41f67
-"\n"/*  */
e41f67
-"\n"/*  Enabling compaction will degrade performance on major collections. */
e41f67
-"  def self.auto_compact=(flag)\n"
e41f67
-,
e41f67
-#line 59 "gc.rb"
e41f67
-"    Primitive.gc_set_auto_compact(flag)\n"
e41f67
-"  end\n"
e41f67
-"\n"
e41f67
-"\n"/*  call-seq: */
e41f67
 "\n"/*     GC.enable    -> true or false */
e41f67
 "\n"/*  */
e41f67
 "\n"/*  Enables garbage collection, returning +true+ if garbage */
e41f67
@@ -645,6 +621,8 @@
e41f67
 "\n"/*    GC.stress	    -> integer, true or false */
e41f67
 "\n"/*  */
e41f67
 "\n"/*  Returns current status of GC stress mode. */
e41f67
+,
e41f67
+#line 71 "gc.rb"
e41f67
 "  def self.stress\n"
e41f67
 "    Primitive.gc_stress_get\n"
e41f67
 "  end\n"
e41f67
@@ -758,8 +736,6 @@
e41f67
 "\n"/*     GC.latest_gc_info(:major_by) -> :malloc */
e41f67
 "\n"/*  */
e41f67
 "\n"/*  Returns information about the most recent garbage collection. */
e41f67
-,
e41f67
-#line 205 "gc.rb"
e41f67
 "\n"/*  */
e41f67
 "\n"/* If the optional argument, hash, is given, */
e41f67
 "\n"/* it is overwritten and returned. */
e41f67
@@ -768,59 +744,14 @@
e41f67
 "    Primitive.gc_latest_gc_info hash_or_key\n"
e41f67
 "  end\n"
e41f67
 "\n"
e41f67
-"\n"/*  call-seq: */
e41f67
-"\n"/*     GC.latest_compact_info -> {:considered=>{:T_CLASS=>11}, :moved=>{:T_CLASS=>11}} */
e41f67
-"\n"/*  */
e41f67
-"\n"/*  Returns information about object moved in the most recent GC compaction. */
e41f67
-"\n"/*  */
e41f67
-"\n"/* The returned hash has two keys :considered and :moved.  The hash for */
e41f67
-"\n"/* :considered lists the number of objects that were considered for movement */
e41f67
-"\n"/* by the compactor, and the :moved hash lists the number of objects that */
e41f67
-"\n"/* were actually moved.  Some objects can't be moved (maybe they were pinned) */
e41f67
-"\n"/* so these numbers can be used to calculate compaction efficiency. */
e41f67
-"  def self.latest_compact_info\n"
e41f67
-"    Primitive.gc_compact_stats\n"
e41f67
-"  end\n"
e41f67
-"\n"
e41f67
-"\n"/*  call-seq: */
e41f67
-"\n"/*     GC.compact */
e41f67
-"\n"/*  */
e41f67
-"\n"/* This function compacts objects together in Ruby's heap.  It eliminates */
e41f67
-"\n"/* unused space (or fragmentation) in the heap by moving objects in to that */
e41f67
-"\n"/* unused space.  This function returns a hash which contains statistics about */
e41f67
-"\n"/* which objects were moved.  See `GC.latest_gc_info` for details about */
e41f67
-"\n"/* compaction statistics. */
e41f67
-"\n"/*  */
e41f67
-"\n"/* This method is implementation specific and not expected to be implemented */
e41f67
-"\n"/* in any implementation besides MRI. */
e41f67
-"  def self.compact\n"
e41f67
-"    Primitive.gc_compact\n"
e41f67
-"  end\n"
e41f67
-"\n"
e41f67
-"\n"/* call-seq: */
e41f67
-"\n"/*    GC.verify_compaction_references(toward: nil, double_heap: false) -> hash */
e41f67
-"\n"/*  */
e41f67
-"\n"/* Verify compaction reference consistency. */
e41f67
-"\n"/*  */
e41f67
-"\n"/* This method is implementation specific.  During compaction, objects that */
e41f67
-"\n"/* were moved are replaced with T_MOVED objects.  No object should have a */
e41f67
-"\n"/* reference to a T_MOVED object after compaction. */
e41f67
-"\n"/*  */
e41f67
-"\n"/* This function doubles the heap to ensure room to move all objects, */
e41f67
-"\n"/* compacts the heap to make sure everything moves, updates all references, */
e41f67
-"\n"/* then performs a full GC.  If any object contains a reference to a T_MOVED */
e41f67
-"\n"/* object, that object should be pushed on the mark stack, and will */
e41f67
-"\n"/* make a SEGV. */
e41f67
-"  def self.verify_compaction_references(toward: nil, double_heap: false)\n"
e41f67
-"    Primitive.gc_verify_compaction_references(double_heap, toward == :empty)\n"
e41f67
-"  end\n"
e41f67
-"\n"
e41f67
 "\n"/* call-seq: */
e41f67
 "\n"/*     GC.using_rvargc? -> true or false */
e41f67
 "\n"/*  */
e41f67
 "\n"/* Returns true if using experimental feature Variable Width Allocation, false */
e41f67
 "\n"/* otherwise. */
e41f67
 "  def self.using_rvargc?\n"/* :nodoc: */
e41f67
+,
e41f67
+#line 198 "gc.rb"
e41f67
 "    GC::INTERNAL_CONSTANTS[:SIZE_POOL_COUNT] > 1\n"
e41f67
 "  end\n"
e41f67
 "\n"
e41f67
@@ -831,8 +762,6 @@
e41f67
 "\n"/* Enable to measure GC time. */
e41f67
 "\n"/* You can get the result with <tt>GC.stat(:time)</tt>. */
e41f67
 "\n"/* Note that GC time measurement can cause some performance overhead. */
e41f67
-,
e41f67
-#line 276 "gc.rb"
e41f67
 "  def self.measure_total_time=(flag)\n"
e41f67
 "    Primitive.cstmt! %{\n"
e41f67
 "      rb_objspace.flags.measure_gc = RTEST(flag) ? TRUE : FALSE;\n"
e41f67
@@ -863,15 +792,15 @@
e41f67
 "end\n"
e41f67
 "\n"
e41f67
 "module ObjectSpace\n"
e41f67
-"  def garbage_collect full_mark: true, immediate_mark: true, immediate_sweep: true\n"
e41f67
 ,
e41f67
-#line 307 "gc.rb"
e41f67
+#line 238 "gc.rb"
e41f67
+"  def garbage_collect full_mark: true, immediate_mark: true, immediate_sweep: true\n"
e41f67
 "    Primitive.gc_start_internal full_mark, immediate_mark, immediate_sweep, false\n"
e41f67
 "  end\n"
e41f67
 "\n"
e41f67
 "  module_function :garbage_collect\n"
e41f67
 "end\n"
e41f67
-#line 875 "miniprelude.c"
e41f67
+#line 804 "miniprelude.c"
e41f67
 };
e41f67
 
e41f67
 static const char prelude_name3[] = "<internal:numeric>";
e41f67
@@ -1223,7 +1152,7 @@
e41f67
 "  end\n"
e41f67
 "\n"
e41f67
 "end\n"
e41f67
-#line 1227 "miniprelude.c"
e41f67
+#line 1156 "miniprelude.c"
e41f67
 };
e41f67
 
e41f67
 static const char prelude_name4[] = "<internal:io>";
e41f67
@@ -1354,7 +1283,7 @@
e41f67
 "    Primitive.io_write_nonblock(buf, exception)\n"
e41f67
 "  end\n"
e41f67
 "end\n"
e41f67
-#line 1358 "miniprelude.c"
e41f67
+#line 1287 "miniprelude.c"
e41f67
 };
e41f67
 
e41f67
 static const char prelude_name5[] = "<internal:marshal>";
e41f67
@@ -1402,7 +1331,7 @@
e41f67
 "    alias restore load\n"
e41f67
 "  end\n"
e41f67
 "end\n"
e41f67
-#line 1406 "miniprelude.c"
e41f67
+#line 1335 "miniprelude.c"
e41f67
 };
e41f67
 
e41f67
 static const char prelude_name6[] = "<internal:pack>";
e41f67
@@ -1724,7 +1653,7 @@
e41f67
 "    Primitive.pack_unpack1(fmt, offset)\n"
e41f67
 "  end\n"
e41f67
 "end\n"
e41f67
-#line 1728 "miniprelude.c"
e41f67
+#line 1657 "miniprelude.c"
e41f67
 };
e41f67
 
e41f67
 static const char prelude_name7[] = "<internal:trace_point>";
e41f67
@@ -2111,7 +2040,7 @@
e41f67
 "    Primitive.tracepoint_attr_instruction_sequence\n"
e41f67
 "  end\n"
e41f67
 "end\n"
e41f67
-#line 2115 "miniprelude.c"
e41f67
+#line 2044 "miniprelude.c"
e41f67
 };
e41f67
 
e41f67
 static const char prelude_name8[] = "<internal:warning>";
e41f67
@@ -2172,7 +2101,7 @@
e41f67
 "    Primitive.rb_warn_m(msgs, uplevel, category)\n"
e41f67
 "  end\n"
e41f67
 "end\n"
e41f67
-#line 2176 "miniprelude.c"
e41f67
+#line 2105 "miniprelude.c"
e41f67
 };
e41f67
 
e41f67
 static const char prelude_name9[] = "<internal:array>";
e41f67
@@ -2249,7 +2178,7 @@
e41f67
 "    end\n"
e41f67
 "  end\n"
e41f67
 "end\n"
e41f67
-#line 2253 "miniprelude.c"
e41f67
+#line 2182 "miniprelude.c"
e41f67
 };
e41f67
 
e41f67
 static const char prelude_name10[] = "<internal:kernel>";
e41f67
@@ -2438,7 +2367,7 @@
e41f67
 "    end\n"
e41f67
 "  end\n"
e41f67
 "end\n"
e41f67
-#line 2442 "miniprelude.c"
e41f67
+#line 2371 "miniprelude.c"
e41f67
 };
e41f67
 
e41f67
 static const char prelude_name11[] = "<internal:ractor>";
e41f67
@@ -3305,7 +3234,7 @@
e41f67
 "    }\n"
e41f67
 "  end\n"
e41f67
 "end\n"
e41f67
-#line 3309 "miniprelude.c"
e41f67
+#line 3238 "miniprelude.c"
e41f67
 };
e41f67
 
e41f67
 static const char prelude_name12[] = "<internal:timev>";
e41f67
@@ -3628,7 +3557,7 @@
e41f67
 "    Primitive.time_init_args(year, mon, mday, hour, min, sec, zone)\n"
e41f67
 "  end\n"
e41f67
 "end\n"
e41f67
-#line 3632 "miniprelude.c"
e41f67
+#line 3561 "miniprelude.c"
e41f67
 };
e41f67
 
e41f67
 static const char prelude_name13[] = "<internal:nilclass>";
e41f67
@@ -3661,7 +3590,7 @@
e41f67
 "    return 0.0\n"
e41f67
 "  end\n"
e41f67
 "end\n"
e41f67
-#line 3665 "miniprelude.c"
e41f67
+#line 3594 "miniprelude.c"
e41f67
 };
e41f67
 
e41f67
 static const char prelude_name14[] = "<internal:prelude>";
e41f67
@@ -3691,7 +3620,7 @@
e41f67
 "\n"
e41f67
 "  private :pp\n"
e41f67
 "end\n"
e41f67
-#line 3695 "miniprelude.c"
e41f67
+#line 3624 "miniprelude.c"
e41f67
 };
e41f67
 
e41f67
 static const char prelude_name15[] = "<internal:gem_prelude>";
e41f67
@@ -3718,7 +3647,7 @@
e41f67
 "rescue LoadError\n"
e41f67
 "  warn \"`did_you_mean' was not loaded.\"\n"
e41f67
 "end if defined?(DidYouMean)\n"
e41f67
-#line 3722 "miniprelude.c"
e41f67
+#line 3651 "miniprelude.c"
e41f67
 };
e41f67
 
e41f67
 static const char prelude_name16[] = "<internal:yjit>";
e41f67
@@ -4059,7 +3988,7 @@
e41f67
 "    end\n"
e41f67
 "  end\n"
e41f67
 "end\n"
e41f67
-#line 4063 "miniprelude.c"
e41f67
+#line 3992 "miniprelude.c"
e41f67
 };
e41f67
 
e41f67
 COMPILER_WARNING_POP