< prev index next >
src/share/vm/oops/instanceKlass.hpp
Print this page
@@ -775,11 +775,11 @@
// JVMTI: Support for caching a class file before it is modified by an agent that can do retransformation
void set_cached_class_file(JvmtiCachedClassFileData *data) {
_cached_class_file = data;
}
- JvmtiCachedClassFileData * get_cached_class_file() { return _cached_class_file; }
+ JvmtiCachedClassFileData * get_cached_class_file();
jint get_cached_class_file_len();
unsigned char * get_cached_class_file_bytes();
// JVMTI: Support for caching of field indices, types, and offsets
void set_jvmti_cached_class_field_map(JvmtiCachedClassFieldMap* descriptor) {
@@ -799,10 +799,18 @@
}
JvmtiCachedClassFileData * get_cached_class_file() { return (JvmtiCachedClassFileData *)NULL; }
#endif // INCLUDE_JVMTI
+#if INCLUDE_CDS && INCLUDE_JVMTI
+ void set_archived_class_data(JvmtiCachedClassFileData* data) {
+ _cached_class_file = data;
+ }
+
+ JvmtiCachedClassFileData * get_archived_class_data();
+#endif
+
bool has_default_methods() const {
return (_misc_flags & _misc_has_default_methods) != 0;
}
void set_has_default_methods(bool b) {
if (b) {
< prev index next >