comparison src/share/vm/prims/jvmtiEnvBase.cpp @ 1142:4ce7240d622c

6914300: ciEnv should export all well known classes Reviewed-by: kvn, twisti
author never
date Wed, 06 Jan 2010 14:22:39 -0800
parents bd02caa94611
children 9b9c1ee9b3f6
comparison
equal deleted inserted replaced
1140:1f6d42899c3a 1142:4ce7240d622c
506 506
507 507
508 JavaThread * 508 JavaThread *
509 JvmtiEnvBase::get_JavaThread(jthread jni_thread) { 509 JvmtiEnvBase::get_JavaThread(jthread jni_thread) {
510 oop t = JNIHandles::resolve_external_guard(jni_thread); 510 oop t = JNIHandles::resolve_external_guard(jni_thread);
511 if (t == NULL || !t->is_a(SystemDictionary::thread_klass())) { 511 if (t == NULL || !t->is_a(SystemDictionary::Thread_klass())) {
512 return NULL; 512 return NULL;
513 } 513 }
514 // The following returns NULL if the thread has not yet run or is in 514 // The following returns NULL if the thread has not yet run or is in
515 // process of exiting 515 // process of exiting
516 return java_lang_Thread::thread(t); 516 return java_lang_Thread::thread(t);
1248 1248
1249 ResourceMark rm; 1249 ResourceMark rm;
1250 for (int i = 0; i < _thread_count; ++i) { 1250 for (int i = 0; i < _thread_count; ++i) {
1251 jthread jt = _thread_list[i]; 1251 jthread jt = _thread_list[i];
1252 oop thread_oop = JNIHandles::resolve_external_guard(jt); 1252 oop thread_oop = JNIHandles::resolve_external_guard(jt);
1253 if (thread_oop == NULL || !thread_oop->is_a(SystemDictionary::thread_klass())) { 1253 if (thread_oop == NULL || !thread_oop->is_a(SystemDictionary::Thread_klass())) {
1254 set_result(JVMTI_ERROR_INVALID_THREAD); 1254 set_result(JVMTI_ERROR_INVALID_THREAD);
1255 return; 1255 return;
1256 } 1256 }
1257 fill_frames(jt, java_lang_Thread::thread(thread_oop), thread_oop); 1257 fill_frames(jt, java_lang_Thread::thread(thread_oop), thread_oop);
1258 } 1258 }