Skip to content

Commit d2a382c

Browse files
committed
fix synchronized
1 parent 205aaf5 commit d2a382c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/fr/inria/yajta/processor/DynamicGraph.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public void setLogFile(File log) {
2323
}
2424

2525
@Override
26-
public void stepIn(String thread, String clazz, String method) {
26+
public synchronized void stepIn(String thread, String clazz, String method) {
2727
MyStack<String> threadPrevious = previous.get(thread);
2828
String callee = clazz + "." + method;
2929
if(threadPrevious == null) threadPrevious = new MyStack<>();
@@ -47,7 +47,7 @@ public void stepIn(String thread, String clazz, String method) {
4747
}
4848

4949
@Override
50-
public void stepOut(String thread) {
50+
public synchronized void stepOut(String thread) {
5151
if(previous.get(thread) == null) {
5252
System.err.println("[ERROR] step out of an unknown thread");
5353
} else {

0 commit comments

Comments
 (0)