Commit 9460cd19 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Need to zero these out after switching the allocator

parent 26965a58
......@@ -4113,6 +4113,9 @@ void setupRuntime() {
// object-creation routines look at the class to see the allocation size.
object_cls = static_cast<BoxedClass*>(_PyObject_GC_Malloc(sizeof(BoxedClass)));
type_cls = static_cast<BoxedClass*>(_PyObject_GC_Malloc(sizeof(BoxedClass)));
// Usually done by PyType_GenericAlloc:
memset(object_cls, 0, sizeof(BoxedClass));
memset(type_cls, 0, sizeof(BoxedClass));
PyObject_INIT(object_cls, type_cls);
PyObject_INIT(type_cls, type_cls);
::new (object_cls)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment