Skip to content

Commit

Permalink
remove stupid write to debug stack
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarv committed Apr 16, 2018
1 parent 047a97e commit 80876c2
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class CallGraph {
private static final String FOLDER = "cg/";
private final long threadId;
final Stack<StackItem> calls = new Stack<>();
final Stack<Integer> reads = new Stack<>();
// final Stack<Integer> reads = new Stack<>();

final List<GraphWriter> writers = new ArrayList<>();

Expand Down Expand Up @@ -91,7 +91,7 @@ String checkStartCondition(StackItem method) {
}

public void called(StackItem method) throws IOException {
reads.push(0);
// reads.push(0);
if (calls.isEmpty()) {
// First node
String identifier = checkStartCondition(method);
Expand Down Expand Up @@ -146,9 +146,9 @@ public void returned(StackItem method) throws IOException {
}

public void dataEdge(StackItem from, StackItem to) throws IOException {
if (!reads.isEmpty()) {
reads.push(reads.pop() + 1);
}
//if (!reads.isEmpty()) {
// reads.push(reads.pop() + 1);
//}
if (calls.isEmpty()) {
LOG.info("Ignore dd egde {} -> {}", from, to);
} else {
Expand Down

0 comments on commit 80876c2

Please sign in to comment.