82 template <typename T> static T original_to_target(T obj) {
83 return (T)original_to_target_impl(address(obj));
84 }
85
86 // obj is an original MetaspaceObj use by the JVM (e.g., a valid Symbol* in the
87 // SymbolTable).
88 //
89 // The return value is the location of this object in the dump time
90 // buffer space
91 template <typename T> static T original_to_buffer(T obj) {
92 return (T)original_to_buffer_impl(address(obj));
93 }
94
95 // Delta of this object from SharedBaseAddress
96 static uintx object_delta_uintx(void* buff_obj);
97
98 // Does obj point to an address inside the runtime target space of the dynamic
99 // archive?
100 static bool is_in_target_space(void *obj);
101
102 static address map();
103 static bool is_mapped();
104 static bool validate(FileMapInfo* dynamic_info);
105 static void disable();
106 private:
107 static address map_impl(FileMapInfo* mapinfo);
108 static void map_failed(FileMapInfo* mapinfo);
109 };
110 #endif // INCLUDE_CDS
111 #endif // SHARE_VM_MEMORY_DYNAMICARCHIVE_HPP
|
82 template <typename T> static T original_to_target(T obj) {
83 return (T)original_to_target_impl(address(obj));
84 }
85
86 // obj is an original MetaspaceObj use by the JVM (e.g., a valid Symbol* in the
87 // SymbolTable).
88 //
89 // The return value is the location of this object in the dump time
90 // buffer space
91 template <typename T> static T original_to_buffer(T obj) {
92 return (T)original_to_buffer_impl(address(obj));
93 }
94
95 // Delta of this object from SharedBaseAddress
96 static uintx object_delta_uintx(void* buff_obj);
97
98 // Does obj point to an address inside the runtime target space of the dynamic
99 // archive?
100 static bool is_in_target_space(void *obj);
101
102 static bool is_mapped() { return FileMapInfo::dynamic_info() != NULL; }
103 static bool validate(FileMapInfo* dynamic_info);
104 };
105 #endif // INCLUDE_CDS
106 #endif // SHARE_VM_MEMORY_DYNAMICARCHIVE_HPP
|