1.1 --- a/src/share/vm/prims/jvmtiRedefineClasses.hpp Wed Jun 12 11:17:39 2013 +0200 1.2 +++ b/src/share/vm/prims/jvmtiRedefineClasses.hpp Wed Jul 17 18:06:29 2013 -0400 1.3 @@ -331,6 +331,11 @@ 1.4 // coordinate a cleanup of these constants with Runtime. 1.5 // 1.6 1.7 +struct JvmtiCachedClassFileData { 1.8 + jint length; 1.9 + unsigned char data[1]; 1.10 +}; 1.11 + 1.12 class VM_RedefineClasses: public VM_Operation { 1.13 private: 1.14 // These static fields are needed by ClassLoaderDataGraph::classes_do() 1.15 @@ -509,5 +514,12 @@ 1.16 // Modifiable test must be shared between IsModifiableClass query 1.17 // and redefine implementation 1.18 static bool is_modifiable_class(oop klass_mirror); 1.19 + 1.20 + static jint get_cached_class_file_len(JvmtiCachedClassFileData *cache) { 1.21 + return cache == NULL ? 0 : cache->length; 1.22 + } 1.23 + static unsigned char * get_cached_class_file_bytes(JvmtiCachedClassFileData *cache) { 1.24 + return cache == NULL ? NULL : cache->data; 1.25 + } 1.26 }; 1.27 #endif // SHARE_VM_PRIMS_JVMTIREDEFINECLASSES_HPP