Race condition at the end of hot code replacement causes inconsistent UI state
まだ誰も着手していません。
評価
調査の方向性
JavaHotCodeReplaceProvider.redefineClasses() と stepIntoThread(ThreadReference) から始め、次に ProtocolServer.sendEvent(DebugEvent) と StoppedEvent および ContinuedEvent の処理を調べます。StepEvent のタイミングを再現または追跡し、ホットコード置換後に対象プロセスが一貫して停止中であることを VS Code UI が反映するようになった時点で、issue は完了とします。
索引モデルが issue の本文から書いたものです。
説明
At the end of JavaHotCodeReplaceProvider.redefineClasses() execution JavaHotCodeReplaceProvider.stepIntoThread(ThreadReference) is called which sends JDI StepRequest to the target process and subscribes for StepEvent, on reception of which the following events for the UI are populated in that order:
context.getProtocolServer().sendEvent(new Events.StoppedEvent("step", thread.uniqueID()));
context.getProtocolServer().sendEvent(new Events.ContinuedEvent(thread.uniqueID()));
However, ProtocolServer.sendEvent(DebugEvent) usually reverses this order by putting StoppedEvent to the event queue until ProtocolServer command processing (redefineClasses in this case) has completed. All other types of events are sent immediately. As JDI StepRequest is usually processed very quickly by the target process, the usual order for the VS Code UI to receive the events is ContinuedEvent > StoppedEvent. In contrast, if StepRequest processing happens to be slow then StoppedEvent is sent first and ContinuedEvent as the final one. In that case the Debug toolbar in VS Code UI will be shown like in running state with Stop button while the target process is still suspended.
- 主要言語
- Java
- スター
- 409
- フォーク
- 204
- 平均マージ
- 1日 13時間
- マージ済み PR(30日)
- 4
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/java-debug のほかの issue
-
ai-triaged bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
microsoft/java-debug#611 · コメント 2 件 ·
-
ai-triaged enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
microsoft/java-debug#608 · コメント 3 件 ·
-
ai-triaged question
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
microsoft/java-debug#597 · コメント 1 件 ·
-
ai-triaged bug
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
microsoft/java-debug#588 · コメント 1 件 ·
-
ai-triaged question
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
microsoft/java-debug#582 · コメント 1 件 ·
microsoft/java-debug の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
elastic/gradle-plugins#157 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
cryptomator/hub#497 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
johanhaleby/occurrent#1120 ·