Sometimes I seem to lose track of the big picture. The instrumentor I’m writing right now converts (non-native) synchronized methods to unsynchronized methods and synchronized blocks, which subsequently get instrumented just like any other synchronized block.

I was just wondering why so much rewriting was going on — it turned out I was inserting the “try enter”, “enter”, and “leave” notifications in both instrumentors. They don’t belong in the one that merely converts. D’uh.


About Mathias

Software development engineer. Principal developer of DrJava. Recent Ph.D. graduate from the Department of Computer Science at Rice University.
This entry was posted in Concurrent Unit Testing. Bookmark the permalink.

Leave a Reply