From: Marek P. <ma...@us...> - 2001-08-23 23:57:35
|
Update of /cvsroot/javaprofiler/library/src/prof In directory usw-pr-cvs1:/tmp/cvs-serv1062/src/prof Modified Files: lock.h prof.cpp prof.h prof_gc.cpp prof_jvm.cpp Log Message: shared memory implementation; java client and dynamic library can now communicate thru sockets or shmem; main README completely rewritten; new classes - for shared memory, semaphores etc.; java native class CommunShMem implementation Index: lock.h =================================================================== RCS file: /cvsroot/javaprofiler/library/src/prof/lock.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** lock.h 2001/08/09 23:22:55 1.11 --- lock.h 2001/08/23 23:57:31 1.12 *************** *** 61,65 **** void wait() { ! #ifdef WIN32 EnterCriticalSection( &cs); --- 61,65 ---- void wait() { ! #ifdef WIN32 EnterCriticalSection( &cs); Index: prof.cpp =================================================================== RCS file: /cvsroot/javaprofiler/library/src/prof/prof.cpp,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -r1.20 -r1.21 *** prof.cpp 2001/08/09 23:22:55 1.20 --- prof.cpp 2001/08/23 23:57:31 1.21 *************** *** 77,83 **** prof().shutdownLock.wait(); ! while( !communThreadEnd) { ! prof().runServer(); ! } } --- 77,81 ---- prof().shutdownLock.wait(); ! while( !communThreadEnd) prof().run(); } Index: prof.h =================================================================== RCS file: /cvsroot/javaprofiler/library/src/prof/prof.h,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -r1.30 -r1.31 *** prof.h 2001/08/09 23:22:55 1.30 --- prof.h 2001/08/23 23:57:31 1.31 *************** *** 756,760 **** ** to take the communication channel away when garbage collector is running. */ ! virtual void idle(); private: --- 756,760 ---- ** to take the communication channel away when garbage collector is running. */ ! virtual void idle() {}; private: Index: prof_gc.cpp =================================================================== RCS file: /cvsroot/javaprofiler/library/src/prof/prof_gc.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** prof_gc.cpp 2001/07/12 22:23:23 1.6 --- prof_gc.cpp 2001/08/23 23:57:31 1.7 *************** *** 1,13 **** #include "../main/includes.h" - // for internal use only - // not documented - static Synchronized* sync1; - static Synchronized* sync2; - void Prof::event_gcStart( JVMPI_Event* event) { ! sync1 = new Synchronized( communLock); ! sync2 = new Synchronized( dataLock); GC* gc = new GC; --- 1,8 ---- #include "../main/includes.h" void Prof::event_gcStart( JVMPI_Event* event) { ! communLock.wait(); ! dataLock.wait(); GC* gc = new GC; *************** *** 27,31 **** gc->totalObjectSpace = event->u.gc_info.total_object_space; ! delete sync2; ! delete sync1; } --- 22,26 ---- gc->totalObjectSpace = event->u.gc_info.total_object_space; ! dataLock.release(); ! communLock.release(); } Index: prof_jvm.cpp =================================================================== RCS file: /cvsroot/javaprofiler/library/src/prof/prof_jvm.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** prof_jvm.cpp 2001/08/05 01:37:10 1.17 --- prof_jvm.cpp 2001/08/23 23:57:31 1.18 *************** *** 399,401 **** --- 399,402 ---- destroyProf(); + exit( 0); } |