equal
deleted
inserted
replaced
56 assert(THREAD->is_Java_thread(), "must be JavaThread"); |
56 assert(THREAD->is_Java_thread(), "must be JavaThread"); |
57 |
57 |
58 // Post the CFLH |
58 // Post the CFLH |
59 JvmtiCachedClassFileData* cached_class_file = NULL; |
59 JvmtiCachedClassFileData* cached_class_file = NULL; |
60 if (cfs == NULL) { |
60 if (cfs == NULL) { |
61 cfs = FileMapInfo::open_stream_for_jvmti(ik, CHECK_NULL); |
61 cfs = FileMapInfo::open_stream_for_jvmti(ik, class_loader, CHECK_NULL); |
62 } |
62 } |
63 unsigned char* ptr = (unsigned char*)cfs->buffer(); |
63 unsigned char* ptr = (unsigned char*)cfs->buffer(); |
64 unsigned char* end_ptr = ptr + cfs->length(); |
64 unsigned char* end_ptr = ptr + cfs->length(); |
65 unsigned char* old_ptr = ptr; |
65 unsigned char* old_ptr = ptr; |
66 JvmtiExport::post_class_file_load_hook(class_name, |
66 JvmtiExport::post_class_file_load_hook(class_name, |