When creating small objects with for example only one accessor property,
then that is stored in the inline member allocation, which needs to
be initialized as well to prevent GCs during construction to access
uninitialized members.
Change-Id: Ie20d27a650e09475845f8ee6aa79b8e62a4bb795
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
{
vtbl = &static_vtbl;
type = Type_Object;
+ memset(memberData, 0, sizeof(Property)*memberDataAlloc);
}
Object::Object(ExecutionContext *context)
{
vtbl = &static_vtbl;
type = Type_Object;
+ memset(memberData, 0, sizeof(Property)*memberDataAlloc);
}
Object::Object(ExecutionEngine *engine, InternalClass *internalClass)
memberDataAlloc = internalClass->size;
memberData = new Property[memberDataAlloc];
}
+ memset(memberData, 0, sizeof(Property)*memberDataAlloc);
}
Object::~Object()