Skip to content

Commit

Permalink
IJ-CR-108265 [java-decompiler] IDEA-198397 add cancelled checks for j…
Browse files Browse the repository at this point in the history
…ava-decompiler. add 2 more points

GitOrigin-RevId: 6aae82cd10be851fadfe9dcd6402d4bc941e1efb
  • Loading branch information
Mikhail Pyltsin authored and intellij-monorepo-bot committed Jun 15, 2023
1 parent 34d476f commit f3cab81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void splitVariables(RootStatement root, StructMethod mt) {
}

private void ssaStatements(DirectGraph dgraph, HashSet<String> updated, boolean calcLiveVars) {

CancellationManager cancellationManager = DecompilerContext.getCancellationManager();
for (DirectNode node : dgraph.nodes) {

updated.remove(node.id);
Expand All @@ -113,6 +113,7 @@ private void ssaStatements(DirectGraph dgraph, HashSet<String> updated, boolean

if (node.exprents != null) {
for (Exprent expr : node.exprents) {
cancellationManager.checkCanceled();
processExprent(expr, varmaparr, node.statement, calcLiveVars);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ public List<Statement> getReversePostOrderList() {
}

public List<Statement> getReversePostOrderList(Statement stat) {
cancellationManager.checkCanceled();
List<Statement> res = new ArrayList<>();

addToReversePostOrderListIterative(stat, res);
Expand Down Expand Up @@ -711,6 +712,7 @@ public Statement getPost() {
}

public VBStyleCollection<Statement, Integer> getStats() {
cancellationManager.checkCanceled();
return stats;
}

Expand Down

0 comments on commit f3cab81

Please sign in to comment.