diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-30 05:42:34 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-30 05:42:34 +0000 |
commit | eedb3dc3a3fcaae9cedf345b0469d5e4100aaacd (patch) | |
tree | ba9a975b451aa5d3047ac2a9773fa18a216ab64f /gc.c | |
parent | 244e32db0dcb273a307e5de78fe9d7bdb70e7ef0 (diff) | |
download | ruby-eedb3dc3a3fcaae9cedf345b0469d5e4100aaacd.tar.gz |
* gc.c (rb_newobj): prohibit call of rb_newobj() during gc when
USE_VALUE_CACHE is not defined (normal case).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -732,6 +732,8 @@ rb_newobj(void) return v; #else rb_objspace_t *objspace = &rb_objspace; + if (during_gc) + rb_bug("object allocation during garbage collection phase"); return rb_newobj_from_heap(objspace); #endif } |