From: Marek P. <ma...@us...> - 2002-07-30 20:45:52
|
Update of /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/commun In directory usw-pr-cvs1:/tmp/cvs-serv17044/net/sourceforge/javaprofiler/jpiimpl/commun Modified Files: IProf.java Log Message: small fixes in IProf.exitVM(), IProf.shutdown(), IProf.stop() Index: IProf.java =================================================================== RCS file: /cvsroot/javaprofiler/jpiimpl/net/sourceforge/javaprofiler/jpiimpl/commun/IProf.java,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -r1.19 -r1.20 *** IProf.java 25 May 2002 00:03:23 -0000 1.19 --- IProf.java 30 Jul 2002 20:45:48 -0000 1.20 *************** *** 132,136 **** try { ! if( _threadsSuspended) resumeVM(); while( _gcDisabled != 0) enableGC(); } --- 132,136 ---- try { ! if( _threadsSuspended) resumeVM(); while( _gcDisabled != 0) enableGC(); } *************** *** 220,223 **** --- 220,236 ---- throws COMMUN_Exception { + if( !isShutdowned()) return; + + try { + + if( _threadsSuspended) resumeVM(); + while( _gcDisabled != 0) enableGC(); + } + catch( COMMUN_Exception e) { + + throw e; + } + catch( Exception e) {} + _buf.clear(); _buf.putInt( F_SHUTDOWN); *************** *** 405,408 **** --- 418,427 ---- throws COMMUN_Exception { + + if( isShutdowned()) { + + shutdown(); + return; + } _buf.clear(); |