hotspot/src/share/vm/prims/jni.cpp
changeset 35219 b9ef87beb87c
parent 35162 65d0237246b1
child 35492 c8c0273e6b91
child 35498 392b50de06c6
equal deleted inserted replaced
35217:ce4b5303a813 35219:b9ef87beb87c
   343                                                    class_loader,
   343                                                    class_loader,
   344                                                    Handle(),
   344                                                    Handle(),
   345                                                    &st,
   345                                                    &st,
   346                                                    CHECK_NULL);
   346                                                    CHECK_NULL);
   347 
   347 
   348   if (TraceClassResolution && k != NULL) {
   348   if (log_is_enabled(Info, classresolve) && k != NULL) {
   349     trace_class_resolution(k);
   349     trace_class_resolution(k);
   350   }
   350   }
   351 
   351 
   352   cls = (jclass)JNIHandles::make_local(
   352   cls = (jclass)JNIHandles::make_local(
   353     env, k->java_mirror());
   353     env, k->java_mirror());
   413 
   413 
   414   TempNewSymbol sym = SymbolTable::new_symbol(name, CHECK_NULL);
   414   TempNewSymbol sym = SymbolTable::new_symbol(name, CHECK_NULL);
   415   result = find_class_from_class_loader(env, sym, true, loader,
   415   result = find_class_from_class_loader(env, sym, true, loader,
   416                                         protection_domain, true, thread);
   416                                         protection_domain, true, thread);
   417 
   417 
   418   if (TraceClassResolution && result != NULL) {
   418   if (log_is_enabled(Info, classresolve) && result != NULL) {
   419     trace_class_resolution(java_lang_Class::as_Klass(JNIHandles::resolve_non_null(result)));
   419     trace_class_resolution(java_lang_Class::as_Klass(JNIHandles::resolve_non_null(result)));
   420   }
   420   }
   421 
   421 
   422   // If we were the first invocation of jni_FindClass, we enable compilation again
   422   // If we were the first invocation of jni_FindClass, we enable compilation again
   423   // rather than just allowing invocation counter to overflow and decay.
   423   // rather than just allowing invocation counter to overflow and decay.
  3275   Handle protection_domain; // null protection domain
  3275   Handle protection_domain; // null protection domain
  3276 
  3276 
  3277   TempNewSymbol sym = SymbolTable::new_symbol(name, CHECK_NULL);
  3277   TempNewSymbol sym = SymbolTable::new_symbol(name, CHECK_NULL);
  3278   jclass result =  find_class_from_class_loader(env, sym, true, loader, protection_domain, true, CHECK_NULL);
  3278   jclass result =  find_class_from_class_loader(env, sym, true, loader, protection_domain, true, CHECK_NULL);
  3279 
  3279 
  3280   if (TraceClassResolution && result != NULL) {
  3280   if (log_is_enabled(Info, classresolve) && result != NULL) {
  3281     trace_class_resolution(java_lang_Class::as_Klass(JNIHandles::resolve_non_null(result)));
  3281     trace_class_resolution(java_lang_Class::as_Klass(JNIHandles::resolve_non_null(result)));
  3282   }
  3282   }
  3283   return result;
  3283   return result;
  3284 }
  3284 }
  3285 
  3285