fix(phase1): 移除 [CYCBREAK] 临时诊断 printf

This commit is contained in:
TermiNexus committed 2026-09-01 21:07:24 +08:00
1 parent 178ea401b7
commit 131f3a9a4d
1 file changed
-10
-10
View File
@@ -1,6 +1,5 @@
import t, c
from stdint import *
import stdio
import string
import stdlib
import memhub
@@ -174,10 +173,6 @@ def _BreakContainerCyclesInDeps(temp_dir: str) -> int:
if StubMerger._includes_deps_sha1 is None or StubMerger._includes_deps_str is None:
return 0
cnt: t.CSizeT = StubMerger._includes_deps_count
# [CYCBREAK] 临时诊断:破环后处理是否执行、命中哪些模块(用后移除)
stdio.printf("[CYCBREAK] deps entries=%lu _list_sha1=%s\n",
t.CUInt64T(cnt),
StubMergerStore.LookupSha1ByModName("_list") if StubMergerStore.LookupSha1ByModName("_list") is not None else "none")
ci: t.CSizeT
for ci in range(cnt):
sha1_m: str = StubMerger._includes_deps_sha1 + t.CSizeT(ci) * 17
@@ -220,11 +215,6 @@ def _BreakContainerCyclesInDeps(temp_dir: str) -> int:
if _DepsRemoveName(deps_m, "_list") != 0:
# 内存破环后同步重写 deps.txt(诊断回退路径读文件)
_RewriteDepsTxt(temp_dir, sha1_m, deps_m)
# [CYCBREAK] 临时诊断:实际移除的环边(用后移除)
stdio.printf("[CYCBREAK] removed _list from %s deps\n", nm_m)
else:
stdio.printf("[CYCBREAK] %s has _list but _list deps no-match (lst_deps=%s)\n",
nm_m, lst_deps if lst_deps is not None else "none")
# _dict ↔ M 环
if string.strstr(deps_m, "_dict") is not None:
dct_sha1: str = StubMergerStore.LookupSha1ByModName("_dict")