hotspot/src/share/vm/classfile/systemDictionary.cpp
changeset 195 9193828514c4
parent 1 489c9b5090e2
child 379 10767ca40189
equal deleted inserted replaced
194:8cdd3d9a4c99 195:9193828514c4
  1240     // Get result.string and add to bootclasspath
  1240     // Get result.string and add to bootclasspath
  1241     assert(result.get_type() == T_OBJECT, "just checking");
  1241     assert(result.get_type() == T_OBJECT, "just checking");
  1242     oop obj = (oop) result.get_jobject();
  1242     oop obj = (oop) result.get_jobject();
  1243     if (obj == NULL) { return nk; }
  1243     if (obj == NULL) { return nk; }
  1244 
  1244 
  1245     char* new_class_name = java_lang_String::as_utf8_string(obj);
  1245     Handle h_obj(THREAD, obj);
       
  1246     char* new_class_name = java_lang_String::as_platform_dependent_str(h_obj,
       
  1247                                                                   CHECK_(nk));
  1246 
  1248 
  1247     // lock the loader
  1249     // lock the loader
  1248     // we use this lock because JVMTI does.
  1250     // we use this lock because JVMTI does.
  1249     Handle loader_lock(THREAD, SystemDictionary::system_loader_lock());
  1251     Handle loader_lock(THREAD, SystemDictionary::system_loader_lock());
  1250 
  1252