ruby-changes:5842
From: ko1 <ko1@a...>
Date: Mon, 16 Jun 2008 01:48:15 +0900 (JST)
Subject: [ruby-changes:5842] Ruby:r17349 (trunk): * vm_core.h, thread.c: rename global_interpreter_lock to
ko1 2008-06-16 01:48:02 +0900 (Mon, 16 Jun 2008)
New Revision: 17349
Modified files:
trunk/ChangeLog
trunk/thread.c
trunk/version.h
trunk/vm_core.h
Log:
* vm_core.h, thread.c: rename global_interpreter_lock to
global_vm_lock.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/version.h?r1=17349&r2=17348&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=17349&r2=17348&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/thread.c?r1=17349&r2=17348&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/vm_core.h?r1=17349&r2=17348&diff_format=u
Index: ChangeLog
===================================================================
--- ChangeLog (revision 17348)
+++ ChangeLog (revision 17349)
@@ -1,3 +1,8 @@
+Mon Jun 16 01:33:08 2008 Koichi Sasada <ko1@a...>
+
+ * vm_core.h, thread.c: rename global_interpreter_lock to
+ global_vm_lock.
+
Sun Jun 15 18:40:35 2008 NARUSE, Yui <naruse@r...>
* ext/syck/rubyext.c (yaml_org_handler): associate encoding.
Index: vm_core.h
===================================================================
--- vm_core.h (revision 17348)
+++ vm_core.h (revision 17349)
@@ -297,7 +297,7 @@
{
VALUE self;
- rb_thread_lock_t global_interpreter_lock;
+ rb_thread_lock_t global_vm_lock;
struct rb_thread_struct *main_thread;
struct rb_thread_struct *running_thread;
Index: thread.c
===================================================================
--- thread.c (revision 17348)
+++ thread.c (revision 17349)
@@ -89,10 +89,10 @@
#define GVL_UNLOCK_BEGIN() do { \
rb_thread_t *_th_stored = GET_THREAD(); \
rb_gc_save_machine_context(_th_stored); \
- native_mutex_unlock(&_th_stored->vm->global_interpreter_lock)
+ native_mutex_unlock(&_th_stored->vm->global_vm_lock)
#define GVL_UNLOCK_END() \
- native_mutex_lock(&_th_stored->vm->global_interpreter_lock); \
+ native_mutex_lock(&_th_stored->vm->global_vm_lock); \
rb_thread_set_current(_th_stored); \
} while(0)
@@ -331,7 +331,7 @@
#endif
thread_debug("thread start: %p\n", th);
- native_mutex_lock(&th->vm->global_interpreter_lock);
+ native_mutex_lock(&th->vm->global_vm_lock);
{
thread_debug("thread start (get lock): %p\n", th);
rb_thread_set_current(th);
@@ -404,7 +404,7 @@
}
}
thread_cleanup_func(th);
- native_mutex_unlock(&th->vm->global_interpreter_lock);
+ native_mutex_unlock(&th->vm->global_vm_lock);
return 0;
}
@@ -785,11 +785,11 @@
thread_debug("rb_thread_schedule/switch start\n");
rb_gc_save_machine_context(th);
- native_mutex_unlock(&th->vm->global_interpreter_lock);
+ native_mutex_unlock(&th->vm->global_vm_lock);
{
native_thread_yield();
}
- native_mutex_lock(&th->vm->global_interpreter_lock);
+ native_mutex_lock(&th->vm->global_vm_lock);
rb_thread_set_current(th);
thread_debug("rb_thread_schedule/switch done\n");
@@ -3385,7 +3385,7 @@
/* main thread setting */
{
/* acquire global interpreter lock */
- rb_thread_lock_t *lp = &GET_THREAD()->vm->global_interpreter_lock;
+ rb_thread_lock_t *lp = &GET_THREAD()->vm->global_vm_lock;
native_mutex_initialize(lp);
native_mutex_lock(lp);
native_mutex_initialize(&GET_THREAD()->interrupt_lock);
Index: version.h
===================================================================
--- version.h (revision 17348)
+++ version.h (revision 17349)
@@ -1,7 +1,7 @@
#define RUBY_VERSION "1.9.0"
-#define RUBY_RELEASE_DATE "2008-06-15"
+#define RUBY_RELEASE_DATE "2008-06-16"
#define RUBY_VERSION_CODE 190
-#define RUBY_RELEASE_CODE 20080615
+#define RUBY_RELEASE_CODE 20080616
#define RUBY_PATCHLEVEL 0
#define RUBY_VERSION_MAJOR 1
@@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 0
#define RUBY_RELEASE_YEAR 2008
#define RUBY_RELEASE_MONTH 6
-#define RUBY_RELEASE_DAY 15
+#define RUBY_RELEASE_DAY 16
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/