<div dir="ltr">Hi,<div><div>I am working with the latest soot-trunk.jar . I&#39;m performing the following inside a BodyTransformer subclass:</div><div><br></div><div>1. Identify the variables that are shared between multiple threads</div><div>    - I&#39;m using the ThreadLocalObjectsAnalysis::isObjectThreadLocal() method for this<br></div><div>    - I iterate over all locals in the body of a method, and check each of them using tloa.isObjectThreadLocal(local, body.getMethod()).</div><div><br></div><div>2. Perform some modifications to the application source based on the list of shared variables computed above.</div><div><br></div><div>I&#39;m getting a java.util.ConcurrentModificationException in the tloa.isObjectThreadLocal(local, body.getMethod()) line of my code.</div><div><br></div><div>I tried executing (1) and (2) as separate phases, but that also gives the same Exception.</div><div><br></div><div>Can anyone help me out regarding this?</div><div><br>Thanks!</div><div>Regards,</div><div>Abhinav Sharma</div><div><br></div></div></div>