fix(memhub,gzip): 内存池 OOM 归属画像与 free 拒绝现场;gzip 注解 *= 词法粘连

memhub: alloc 失败打印归属 site/ctx 与存活块 order 分布(新增 dump_alive_orders);free 被 _is_valid_ptr 拒绝时首次打印现场;接通 big_alloc_count

gzip: ub: uchar*= buf 补空格(*= 被词法合并为单 OP,注解止于 uchar)

新增 traceback 模块;删除 dbgstack.vp;其余模块随新语法与尺寸口径同步
This commit is contained in:
TermiNexus committed 2026-09-26 19:27:24 +08:00
1 parent 093ff5f66d
commit db3be6968f
32 files changed
+6870 -3058

No files matched your search

+34 -47
View File
@@ -8,53 +8,40 @@ def chr(i: int) -> char: return char(i)
def min(a: double, b: double) -> double: return a if a < b else b
def max(a: double, b: double) -> double: return a if a > b else b
# rawptr 已内置于编译器(TPC/TPV 双端),作为语法保留字,不可重定义:
# rawptr[T] 固定表示"裸指针,指向原始类型 T"(等价 t.CPtr[T])。
sizet: t.CTypedef = t.CSizeT
size_t: t.CTypedef = sizet
uzt: t.CTypedef = sizet
int8: t.CTypedef = t.CInt8T
int16: t.CTypedef = t.CInt16T
int32: t.CTypedef = t.CInt32T
int64: t.CTypedef = t.CInt64T
uint8: t.CTypedef = t.CUInt8T
uint16: t.CTypedef = t.CUInt16T
uint32: t.CTypedef = t.CUInt32T
uint64: t.CTypedef = t.CUInt64T
typedef sizet = t.CSizeT
typedef size_t = sizet
typedef int8 = t.CInt8T
typedef int16 = t.CInt16T
typedef int32 = t.CInt32T
typedef int64 = t.CInt64T
typedef uint8 = t.CUInt8T
typedef uint16 = t.CUInt16T
typedef uint32 = t.CUInt32T
typedef uint64 = t.CUInt64T
intfast8: t.CTypedef = t.CIntFast8T
intfast16: t.CTypedef = t.CIntFast16T
intfast32: t.CTypedef = t.CIntFast32T
intfast64: t.CTypedef = t.CIntFast64T
uintfast8: t.CTypedef = t.CUIntFast8T
uintfast16: t.CTypedef = t.CUIntFast16T
uintfast32: t.CTypedef = t.CUIntFast32T
uintfast64: t.CTypedef = t.CUIntFast64T
typedef intfast8 = t.CIntFast8T
typedef intfast16 = t.CIntFast16T
typedef intfast32 = t.CIntFast32T
typedef intfast64 = t.CIntFast64T
typedef uintfast8 = t.CUIntFast8T
typedef uintfast16 = t.CUIntFast16T
typedef uintfast32 = t.CUIntFast32T
typedef uintfast64 = t.CUIntFast64T
intleast8: t.CTypedef = t.CIntLeast8T
intleast16: t.CTypedef = t.CIntLeast16T
intleast32: t.CTypedef = t.CIntLeast32T
intleast64: t.CTypedef = t.CIntLeast64T
uintleast8: t.CTypedef = t.CUIntLeast8T
uintleast16: t.CTypedef = t.CUIntLeast16T
uintleast32: t.CTypedef = t.CUIntLeast32T
uintleast64: t.CTypedef = t.CUIntLeast64T
typedef intleast8 = t.CIntLeast8T
typedef intleast16 = t.CIntLeast16T
typedef intleast32 = t.CIntLeast32T
typedef intleast64 = t.CIntLeast64T
typedef uintleast8 = t.CUIntLeast8T
typedef uintleast16 = t.CUIntLeast16T
typedef uintleast32 = t.CUIntLeast32T
typedef uintleast64 = t.CUIntLeast64T
# C 基础类型名裸名别名(裸名家族,不随 import 注入;编译器最后匹配本文件兜底解析)
# 目标 x86_64-pc-windows-gnu(Windows/mingw-w64,LLP64):
# uchar = 8 位无符号(t.CUnsignedChar,固定 Size=8;C 的 unsigned char)
# short = 16 位有符号(t.CShort,固定 Size=16)
# ushort = 16 位无符号(t.CUnsignedShort,固定 Size=16)
# uint = u32,32 位无符号(等价 uint32/u32,底层 t.CUnsignedInt Size=32)
# long = 32 位有符号(t.CLong,Size 由 t.configure_platform 依 triple 置 32)
# ulong = 32 位无符号(t.CUnsignedLong,Size 由 t.configure_platform 依 triple 置 32)
# longlong = 64 位有符号(t.CLongLong,固定 Size=64)
# ulonglong = 64 位无符号(t.CUnsignedLongLong,固定 Size=64)
uchar: t.CTypedef = t.CUnsignedChar
short: t.CTypedef = t.CShort
ushort: t.CTypedef = t.CUnsignedShort
uint: t.CTypedef = t.CUnsignedInt
long: t.CTypedef = t.CLong
ulong: t.CTypedef = t.CUnsignedLong
longlong: t.CTypedef = t.CLongLong
ulonglong: t.CTypedef = t.CUnsignedLongLong
typedef uchar = t.CUnsignedChar
typedef short = t.CShort
typedef ushort = t.CUnsignedShort
typedef uint = t.CUnsignedInt
typedef long = t.CLong
typedef ulong = t.CUnsignedLong
typedef longlong = t.CLongLong
typedef ulonglong = t.CUnsignedLongLong