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;
/* Locals array */
mySize += sizeof(KrkLocalEntry) * self->localNameCount;
/* Overlong jumps */
mySize += sizeof(KrkOverlongJump) * self->overlongJumpsCapacity;
break;
}
case KRK_OBJ_NATIVE: {