mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* gc.c (rb_newobj): prohibit call of rb_newobj() during gc.
a patch from Sylvain Joyeux in [ruby-core:12099]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
29ad22694f
commit
87d053f000
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Jun 18 23:07:19 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
|
||||
|
||||
* gc.c (rb_newobj): prohibit call of rb_newobj() during gc.
|
||||
a patch from Sylvain Joyeux in [ruby-core:12099].
|
||||
|
||||
Wed Jun 18 21:08:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ruby.c (verbose_setter, opt_W_getter): fixed prototypes.
|
||||
|
|
3
gc.c
3
gc.c
|
@ -714,6 +714,9 @@ rb_newobj(void)
|
|||
rb_objspace_t *objspace = &rb_objspace;
|
||||
#endif
|
||||
|
||||
if (during_gc)
|
||||
rb_bug("object allocation during garbage collection phase");
|
||||
|
||||
if (v) {
|
||||
RBASIC(v)->flags = 0;
|
||||
th->value_cache_ptr++;
|
||||
|
|
Loading…
Reference in a new issue