We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4db536d commit 144c4e2Copy full SHA for 144c4e2
1 file changed
soot-infoflow/src/soot/jimple/infoflow/util/ReusableExecutor.java
@@ -36,9 +36,11 @@ public void execute(Runnable command) {
36
@Override
37
public void run() {
38
command.run();
39
- counter.getAndDecrement();
40
- synchronized (obj) {
41
- obj.notify();
+ int c = counter.getAndDecrement();
+ if (c == 0) {
+ synchronized (obj) {
42
+ obj.notify();
43
+ }
44
}
45
46
0 commit comments