Skip to content

Commit d2e9845

Browse files
committed
made two fields volatile to hopefully fix a threading issue.
1 parent 89d1e84 commit d2e9845

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/soot/SootMethod.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ public class SootMethod
7777
private List<SootClass> exceptions = null;
7878

7979
/** Active body associated with this method. */
80-
private Body activeBody;
80+
private volatile Body activeBody;
8181

8282
/** Tells this method how to find out where its body lives. */
83-
protected MethodSource ms;
83+
protected volatile MethodSource ms;
8484

8585
/** Uses methodSource to retrieve the method body in question; does not set it
8686
* to be the active body.

0 commit comments

Comments
 (0)