Repository navigation
diag(conpty): 句柄计数拆分为启动/关闭两个阶段 (#21) - #245
Merged
Merged
Conversation
Recording the count after session start and after close shows whether a per-session handle is held during the session or leaked at teardown.
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.
内容
探针记录里新增两个阶段计数:
handles_after_startSession::start()返回后handles_after_closesession.close()返回后(settle 之前)配合既有
handles_before/handles_after,可以把"每轮 +1"定位到启动阶段还是关闭/回收阶段。已取得的判据
在分支上对 Server 2022 跑了一轮(run 41015971913):
本机 Win11 对照:会话期间同为 +8,但 close 后完全回到 before。
因此 2022 的 +1/轮 发生在关闭之后,与启动阶段无关。详见 #21 说明。
验证
termforge_conpty_probe构建通过;本机 5 个模式全部 passed。边界
steady_resources语义;Refs #21