Commit 239ec0a0 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Simple optimization: interior pointers not allowed here

parent fb76cadf
......@@ -199,8 +199,9 @@ bool isValidGCObject(void* p) {
}
void setIsPythonObject(Box* b) {
auto al = global_heap.getAllocationFromInteriorPointer(b);
assert(al->user_data == (char*)b);
assert(isValidGCMemory(b));
auto al = GCAllocation::fromUserData(b);
if (al->kind_id == GCKind::CONSERVATIVE) {
al->kind_id = GCKind::CONSERVATIVE_PYTHON;
} else {
......
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