Skip to content

Commit

Permalink
Account for overlongjump tables in size of codeobject
Browse files Browse the repository at this point in the history
  • Loading branch information
klange committed Mar 4, 2024
1 parent 4bd5988 commit 6282205
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 6282205

Please sign in to comment.