From 62822051a9d7672bb345cab57b684d68adfa3d4f Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Tue, 5 Mar 2024 08:36:35 +0900 Subject: [PATCH] Account for overlongjump tables in size of codeobject --- src/sys.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sys.c b/src/sys.c index d8d4d05..14131e5 100644 --- a/src/sys.c +++ b/src/sys.c @@ -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: {