修正了 TPC 的一些错误,包括 Test 维护后 TPV 无法重新编译或重编译后越界的部分问题

This commit is contained in:
2026-07-20 11:12:30 +08:00
parent ab73420b4f
commit a277ded8d4
476 changed files with 4000 additions and 3439 deletions

View File

@@ -33,8 +33,10 @@ def mbuddy_main() -> CInt:
testcheck.section("基础 alloc/free")
arena: bytes = stdlib.malloc(65536)
bd: memhub.MemBuddy | CPtr = memhub.MemBuddy(arena, 65536)
s1: CSizeT = bd.stats()
fc1: CSizeT = bd.free_count()
viperlib.snprintf(buf, 256, "stats=%lu, free_count=%lu", bd.stats(), bd.free_count())
viperlib.snprintf(buf, 256, "stats=%lu, free_count=%lu", s1, fc1)
testcheck.info(buf)
p1: bytes = bd.alloc(16)