Skip to content

Commit f300756

Browse files
committed
Only synchronize necessary part
1 parent 7c96c55 commit f300756

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

soot-infoflow/src/soot/jimple/infoflow/solver/cfg/InfoflowCFG.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,10 @@ else if (writes)
383383
}
384384

385385
// Merge the temporary results into the global cache
386-
for (Entry<SootMethod, StaticFieldUse> tempEntry : tempUses.entrySet()) {
387-
registerStaticVariableUse(tempEntry.getKey(), variable, tempEntry.getValue());
386+
synchronized (tempUses) {
387+
for (Entry<SootMethod, StaticFieldUse> tempEntry : tempUses.entrySet()) {
388+
registerStaticVariableUse(tempEntry.getKey(), variable, tempEntry.getValue());
389+
}
388390
}
389391

390392
StaticFieldUse outerUse = tempUses.get(smethod);

0 commit comments

Comments
 (0)