comparison src/share/vm/prims/jvmtiImpl.cpp @ 8721:47bc9800972c

8006498: #if <symbol> is wrong in the code. Summary: ASSERT and other symbols used incorrectly with #if are supposed to be defined or not. Reviewed-by: dholmes, mikael
author jprovino
date Wed, 06 Mar 2013 13:46:55 -0500
parents 8b46b0196eb0
children b9a918201d47 f2110083203d
comparison
equal deleted inserted replaced
8720:fad90b102190 8721:47bc9800972c
888 MutexLocker mu(Threads_lock); 888 MutexLocker mu(Threads_lock);
889 ResourceMark rm; 889 ResourceMark rm;
890 890
891 tty->print("Suspended Threads: ["); 891 tty->print("Suspended Threads: [");
892 for (JavaThread *thread = Threads::first(); thread != NULL; thread = thread->next()) { 892 for (JavaThread *thread = Threads::first(); thread != NULL; thread = thread->next()) {
893 #if JVMTI_TRACE 893 #ifdef JVMTI_TRACE
894 const char *name = JvmtiTrace::safe_get_thread_name(thread); 894 const char *name = JvmtiTrace::safe_get_thread_name(thread);
895 #else 895 #else
896 const char *name = ""; 896 const char *name = "";
897 #endif /*JVMTI_TRACE */ 897 #endif /*JVMTI_TRACE */
898 tty->print("%s(%c ", name, thread->is_being_ext_suspended() ? 'S' : '_'); 898 tty->print("%s(%c ", name, thread->is_being_ext_suspended() ? 'S' : '_');