8198474: Move JNIHandles::resolve into jniHandles.inline.hpp

Moved resolve and friends to new jniHandles.inline.hpp.

Reviewed-by: tschatzl, pliden, coleenp
This commit is contained in:
Kim Barrett 2018-03-01 16:51:22 -05:00
parent d0ec59a9fb
commit d7765d9002
43 changed files with 232 additions and 122 deletions

View file

@ -39,6 +39,7 @@
#include "oops/objArrayOop.inline.hpp"
#include "oops/typeArrayOop.inline.hpp"
#include "runtime/javaCalls.hpp"
#include "runtime/jniHandles.inline.hpp"
#include "runtime/safepointMechanism.inline.hpp"
#include "utilities/align.hpp"
@ -97,6 +98,32 @@ VMReg getVMRegFromLocation(Handle location, int total_frame_size, TRAPS) {
}
}
objArrayOop CodeInstaller::sites() {
return (objArrayOop) JNIHandles::resolve(_sites_handle);
}
arrayOop CodeInstaller::code() {
return (arrayOop) JNIHandles::resolve(_code_handle);
}
arrayOop CodeInstaller::data_section() {
return (arrayOop) JNIHandles::resolve(_data_section_handle);
}
objArrayOop CodeInstaller::data_section_patches() {
return (objArrayOop) JNIHandles::resolve(_data_section_patches_handle);
}
#ifndef PRODUCT
objArrayOop CodeInstaller::comments() {
return (objArrayOop) JNIHandles::resolve(_comments_handle);
}
#endif
oop CodeInstaller::word_kind() {
return JNIHandles::resolve(_word_kind_handle);
}
// creates a HotSpot oop map out of the byte arrays provided by DebugInfo
OopMap* CodeInstaller::create_oop_map(Handle debug_info, TRAPS) {
Handle reference_map(THREAD, DebugInfo::referenceMap(debug_info));