mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Revert r33397 because it cause segv.
"* class.c (class_alloc): allocate extra memory after containing" git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4eb497d90b
commit
0688c81a89
2 changed files with 2 additions and 6 deletions
3
class.c
3
class.c
|
@ -49,9 +49,10 @@ static ID id_attached;
|
|||
static VALUE
|
||||
class_alloc(VALUE flags, VALUE klass)
|
||||
{
|
||||
rb_classext_t *ext = ALLOC(rb_classext_t);
|
||||
NEWOBJ(obj, struct RClass);
|
||||
OBJSETUP(obj, klass, flags);
|
||||
obj->ptr = ALLOC(rb_classext_t);
|
||||
obj->ptr = ext;
|
||||
RCLASS_IV_TBL(obj) = 0;
|
||||
RCLASS_CONST_TBL(obj) = 0;
|
||||
RCLASS_M_TBL(obj) = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue