List<IThread> poppedThreads = new ArrayList<IThread>();
target.setIsPerformingHotCodeReplace(true);
try {
boolean framesPopped = false;
if (target.canPopFrames()) {
// JDK 1.4 drop to frame support:
// JDK 1.4 spec is faulty around methods that have
// been rendered obsolete after class redefinition.
// Thus, pop the frames that contain affected methods
// *before* the class redefinition to avoid problems.