Authors: russell@unturf.com · brackishbert@gmail.com · foxhop.net · TimeHexOn.com Patches, unit tests, benchmarks, whitepaper, and outreach briefs. Public domain — no copyright claimed. Use freely.
13 lines
796 B
Diff
13 lines
796 B
Diff
diff --git a/src/jdk.compiler/share/classes/com/sun/tools/javac/util/GraphUtils.java b/src/jdk.compiler/share/classes/com/sun/tools/javac/util/GraphUtils.java
|
|
index 8620caf3..8c99c9ed 100644
|
|
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/util/GraphUtils.java
|
|
+++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/util/GraphUtils.java
|
|
@@ -183,7 +183,7 @@ private void findSCC(N v) {
|
|
//it's the first time we see this node
|
|
findSCC(n);
|
|
v.lowlink = Math.min(v.lowlink, n.lowlink);
|
|
- } else if (stack.contains(n)) {
|
|
+ } else if (n.active) {
|
|
//this node is already reachable from current root
|
|
v.lowlink = Math.min(v.lowlink, n.index);
|
|
}
|