Account for overlongjump tables in size of codeobject

This commit is contained in:
K. Lange 2024-03-05 08:36:35 +09:00
parent 4bd5988e31
commit 62822051a9

View File

@ -84,6 +84,8 @@ KRK_Function(getsizeof) {
mySize += sizeof(KrkValue) * self->keywordArgNames.capacity; mySize += sizeof(KrkValue) * self->keywordArgNames.capacity;
/* Locals array */ /* Locals array */
mySize += sizeof(KrkLocalEntry) * self->localNameCount; mySize += sizeof(KrkLocalEntry) * self->localNameCount;
/* Overlong jumps */
mySize += sizeof(KrkOverlongJump) * self->overlongJumpsCapacity;
break; break;
} }
case KRK_OBJ_NATIVE: { case KRK_OBJ_NATIVE: {