Account for overlongjump tables in size of codeobject
This commit is contained in:
parent
4bd5988e31
commit
62822051a9
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user