|
From: Pavel V. <va...@us...> - 2002-09-11 19:07:07
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl
In directory usw-pr-cvs1:/tmp/cvs-serv3273
Modified Files:
VirtualMachineImpl.java
Log Message:
really horribele pacth
fixed
expcetion have occured when snapshot is created during paused VM
Index: VirtualMachineImpl.java
===================================================================
RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/VirtualMachineImpl.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** VirtualMachineImpl.java 10 Sep 2002 19:28:07 -0000 1.15
--- VirtualMachineImpl.java 11 Sep 2002 19:07:00 -0000 1.16
***************
*** 104,110 ****
//PENDING: to pass configuration
//PENDING: if not_suspendedVM then suspendVM and resumeVM
! suspendThreads();
SnapshotImpl snap = new SnapshotImpl( iprof );
! resumeThreads();
return snap;
}
--- 104,122 ----
//PENDING: to pass configuration
//PENDING: if not_suspendedVM then suspendVM and resumeVM
! //!!!FIXME
! boolean alreadySusp = false;
! try {
! suspendThreads();
! } catch (RuntimeException e) {
! if (e.getMessage().startsWith( "TODO: handle this: " ) ) {
! alreadySusp = true;
! }
! else
! throw e;
! }
SnapshotImpl snap = new SnapshotImpl( iprof );
! if ( !alreadySusp ) {
! resumeThreads();
! }
return snap;
}
***************
*** 292,295 ****
--- 304,313 ----
/*
* $Log$
+ * Revision 1.16 2002/09/11 19:07:00 vachis
+ * really horribele pacth
+ *
+ * fixed
+ * expcetion have occured when snapshot is created during paused VM
+ *
* Revision 1.15 2002/09/10 19:28:07 vachis
* empty error handler methods
|