src/hotspot/share/classfile/klassFactory.cpp
changeset 54340 2221f042556d
parent 53884 1a7b57d02107
child 54927 1512d88b24c6
equal deleted inserted replaced
54339:f69a2f675f19 54340:2221f042556d
    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,