[前][次][番号順一覧][スレッド一覧]

ruby-changes:55433

From: k0kubun <ko1@a...>
Date: Sat, 20 Apr 2019 16:53:03 +0900 (JST)
Subject: [ruby-changes:55433] k0kubun:r67644 (trunk): Fix wrong critical section label

k0kubun	2019-04-20 16:52:59 +0900 (Sat, 20 Apr 2019)

  New Revision: 67644

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67644

  Log:
    Fix wrong critical section label

  Modified files:
    trunk/mjit.c
Index: mjit.c
===================================================================
--- mjit.c	(revision 67643)
+++ mjit.c	(revision 67644)
@@ -117,7 +117,7 @@ mjit_update_references(const rb_iseq_t * https://github.com/ruby/ruby/blob/trunk/mjit.c#L117
     if (!mjit_enabled)
         return;
 
-    CRITICAL_SECTION_START(4, "mjit_free_iseq");
+    CRITICAL_SECTION_START(4, "mjit_update_references");
     if (iseq->body->jit_unit) {
         iseq->body->jit_unit->iseq = (rb_iseq_t *)rb_gc_new_location((VALUE)iseq->body->jit_unit->iseq);
         // We need to invalidate JIT-ed code for the ISeq because it embeds pointer addresses.
@@ -134,7 +134,7 @@ mjit_update_references(const rb_iseq_t * https://github.com/ruby/ruby/blob/trunk/mjit.c#L134
             unit->iseq = (rb_iseq_t *)rb_gc_new_location((VALUE)unit->iseq);
         }
     }
-    CRITICAL_SECTION_FINISH(4, "mjit_free_iseq");
+    CRITICAL_SECTION_FINISH(4, "mjit_update_references");
 }
 
 // Iseqs can be garbage collected.  This function should call when it

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]