From: Marek P. <ma...@us...> - 2001-11-28 00:02:43
|
Update of /cvsroot/javaprofiler/library/src/commun2 In directory usw-pr-cvs1:/tmp/cvs-serv24296/src/commun2 Modified Files: prof_interface.cpp Log Message: changes in interface enableGC(), disableGC(), runGC() added Index: prof_interface.cpp =================================================================== RCS file: /cvsroot/javaprofiler/library/src/commun2/prof_interface.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** prof_interface.cpp 2001/11/25 22:33:47 1.14 --- prof_interface.cpp 2001/11/28 00:02:41 1.15 *************** *** 1072,1073 **** --- 1072,1102 ---- return 1; } + + void Prof::enableGC() { + + gcLock.wait(); + jvmpiInterface->EnableGC(); + gcLock.release(); + } + + void Prof::disableGC() { + + communLock.release(); + + gcLock.wait(); + jvmpiInterface->DisableGC(); + gcLock.release(); + + communLock.wait(); + } + + void Prof::runGC() { + + communLock.release(); + gcLock.wait(); + + jvmpiInterface->RunGC(); + + communLock.wait(); + gcLock.release(); + } |