src/native/jvmti/cacaodbg.c (jvmti_cacaodbgserver_quit): bugfix: set dbgcom = NULL only if all environments have been disposed.
src/native/jvmti/jvmti.c (GetLoadedClasses): remove debug statement
TRAP;
/* get cacaodbserver exit */
wait(NULL);
+ dbgcom = NULL;
}
- dbgcom = NULL;
pthread_mutex_unlock(&dbgcomlock);
}
Samuel Vinson
- $Id: jvmti.c 4945 2006-05-23 19:52:47Z motse $
+ $Id: jvmti.c 4946 2006-05-24 11:00:38Z motse $
*/
/* filter pseudo classes $NEW$,$NULL$,$ARRAYSTUB$ out */
if (nameentry->name->text[0]=='$')
{
- log_println("%s", nameentry->name->text);
*class_count_ptr -= 1;
break;
- }
+ }
classentry = nameentry->classes;
while (classentry != NULL){ /* iterate over classes with same name */
assert(class_java_lang_System->state & CLASS_LOADED);
#if defined(ENABLE_JVMTI)
- jvmti_set_phase(JVMTI_PHASE_DEAD);
- if (jvmti) jvmti_agentunload();
+ if (jvmti || (dbgcom!=NULL)) {
+ jvmti_set_phase(JVMTI_PHASE_DEAD);
+ if (jvmti) jvmti_agentunload();
+ }
#endif
if (!link_class(class_java_lang_System))