< prev index next >

hotspot/src/share/vm/prims/jvm.cpp

Print this page




3639     Symbol* sym = ik_h->constants()->symbol_at(
3640                         extract_low_short_from_int(
3641                           ik_h->constants()->name_and_type_at(encl_method_method_idx)));
3642     Handle str = java_lang_String::create_from_symbol(sym, CHECK_NULL);
3643     dest->obj_at_put(1, str());
3644     sym = ik_h->constants()->symbol_at(
3645               extract_high_short_from_int(
3646                 ik_h->constants()->name_and_type_at(encl_method_method_idx)));
3647     str = java_lang_String::create_from_symbol(sym, CHECK_NULL);
3648     dest->obj_at_put(2, str());
3649   }
3650   return (jobjectArray) JNIHandles::make_local(dest());
3651 }
3652 JVM_END
3653 
3654 JVM_ENTRY(void, JVM_GetVersionInfo(JNIEnv* env, jvm_version_info* info, size_t info_size))
3655 {
3656   memset(info, 0, info_size);
3657 
3658   info->jvm_version = Abstract_VM_Version::jvm_version();
3659   info->update_version = 0;          /* 0 in HotSpot Express VM */
3660   info->special_update_version = 0;  /* 0 in HotSpot Express VM */
3661 
3662   // when we add a new capability in the jvm_version_info struct, we should also
3663   // consider to expose this new capability in the sun.rt.jvmCapabilities jvmstat
3664   // counter defined in runtimeService.cpp.
3665   info->is_attachable = AttachListener::is_attach_supported();
3666 }
3667 JVM_END


3639     Symbol* sym = ik_h->constants()->symbol_at(
3640                         extract_low_short_from_int(
3641                           ik_h->constants()->name_and_type_at(encl_method_method_idx)));
3642     Handle str = java_lang_String::create_from_symbol(sym, CHECK_NULL);
3643     dest->obj_at_put(1, str());
3644     sym = ik_h->constants()->symbol_at(
3645               extract_high_short_from_int(
3646                 ik_h->constants()->name_and_type_at(encl_method_method_idx)));
3647     str = java_lang_String::create_from_symbol(sym, CHECK_NULL);
3648     dest->obj_at_put(2, str());
3649   }
3650   return (jobjectArray) JNIHandles::make_local(dest());
3651 }
3652 JVM_END
3653 
3654 JVM_ENTRY(void, JVM_GetVersionInfo(JNIEnv* env, jvm_version_info* info, size_t info_size))
3655 {
3656   memset(info, 0, info_size);
3657 
3658   info->jvm_version = Abstract_VM_Version::jvm_version();
3659   info->patch_version = Abstract_VM_Version::vm_patch_version();

3660 
3661   // when we add a new capability in the jvm_version_info struct, we should also
3662   // consider to expose this new capability in the sun.rt.jvmCapabilities jvmstat
3663   // counter defined in runtimeService.cpp.
3664   info->is_attachable = AttachListener::is_attach_supported();
3665 }
3666 JVM_END
< prev index next >