Repository navigation
test: judge the memory gate on live heap (ADR-338) and record the clean-state comparison - #275
Merged
Merged
Conversation
…me; the gate metric is unsound With zero swap both packages sit at about 37.4 MiB private committed across five rounds each and both fail the 34 MiB limit, while live heap is about 20 MiB in both. The metric moves inversely with memory pressure, so the released 1.2.1 fails on a clean system too. Signed-off-by: wangzhizhou <824219521@qq.com>
Private committed memory moves inversely with system memory pressure, so the released 1.2.1 fails the old 34 MiB limit on a clean system while its live heap stays near 20 MiB. The gate now judges DefaultMallocZone allocated bytes at the steady samples, keeps the old figures as reference, and can re-judge saved snapshots with ANALYZE_ONLY=1. Signed-off-by: wangzhizhou <824219521@qq.com>
wangzhizhou
enabled auto-merge
November 12, 2026 16:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
内容
只含文档、探针工具与一处证据脚本关键词,不动产品代码(不触发验收包重建)。
memory-gate.sh改以稳态存活堆(DefaultMallocZone已分配字节)判定,门槛 24 MiB,不再按学习区分档;「私有已提交」与 footprint 只作参考;读不到存活堆按 FAIL;新增ANALYZE_ONLY=1只重判已有快照。取代 ADR-263/292/312 的口径与门槛。验证
ANALYZE_ONLY=1重判报告 265 的 5 组快照(共 23 轮):全部 PASS,稳态存活堆 20.1–21.2 MiBmake verifyPASS;make macos-offline-tests62 文件 / 328 例 PASS