зеркало из https://github.com/github/ruby.git
* gc.c (rb_during_gc): VALUE cache is irrelevant.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
f5e45d00eb
Коммит
7f637ab96f
|
@ -1,3 +1,7 @@
|
|||
Thu Jul 3 04:39:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* gc.c (rb_during_gc): VALUE cache is irrelevant.
|
||||
|
||||
Thu Jul 3 01:44:01 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* regint.h (GET_ALIGNMENT_PAD_SIZE, ALIGNMENT_RIGHT): cast pointer to
|
||||
|
|
10
gc.c
10
gc.c
|
@ -726,17 +726,7 @@ rb_fill_value_cache(rb_thread_t *th)
|
|||
int
|
||||
rb_during_gc(void)
|
||||
{
|
||||
#if USE_VALUE_CACHE
|
||||
rb_thread_t *th = GET_THREAD();
|
||||
VALUE v = *th->value_cache_ptr;
|
||||
#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
|
||||
rb_objspace_t *objspace = th->vm->objspace;
|
||||
#else
|
||||
rb_objspace_t *objspace = &rb_objspace;
|
||||
#endif
|
||||
#else
|
||||
rb_objspace_t *objspace = &rb_objspace;
|
||||
#endif
|
||||
return during_gc;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче