src/hotspot/share/aot/aotLoader.cpp
changeset 51444 3e5d28e6de32
parent 49847 f22c0b4caad7
child 51731 8745f8f1b0f8
equal deleted inserted replaced
51443:cdffba164671 51444:3e5d28e6de32
    40 #define FOR_ALL_AOT_HEAPS(heap) for (GrowableArrayIterator<AOTCodeHeap*> heap = heaps()->begin(); heap != heaps()->end(); ++heap)
    40 #define FOR_ALL_AOT_HEAPS(heap) for (GrowableArrayIterator<AOTCodeHeap*> heap = heaps()->begin(); heap != heaps()->end(); ++heap)
    41 // Iterate over all AOT Libraries
    41 // Iterate over all AOT Libraries
    42 #define FOR_ALL_AOT_LIBRARIES(lib) for (GrowableArrayIterator<AOTLib*> lib = libraries()->begin(); lib != libraries()->end(); ++lib)
    42 #define FOR_ALL_AOT_LIBRARIES(lib) for (GrowableArrayIterator<AOTLib*> lib = libraries()->begin(); lib != libraries()->end(); ++lib)
    43 
    43 
    44 void AOTLoader::load_for_klass(InstanceKlass* ik, Thread* thread) {
    44 void AOTLoader::load_for_klass(InstanceKlass* ik, Thread* thread) {
    45   if (ik->is_anonymous()) {
    45   if (ik->is_unsafe_anonymous()) {
    46     // don't even bother
    46     // don't even bother
    47     return;
    47     return;
    48   }
    48   }
    49   if (UseAOT) {
    49   if (UseAOT) {
    50     FOR_ALL_AOT_HEAPS(heap) {
    50     FOR_ALL_AOT_HEAPS(heap) {
    52     }
    52     }
    53   }
    53   }
    54 }
    54 }
    55 
    55 
    56 uint64_t AOTLoader::get_saved_fingerprint(InstanceKlass* ik) {
    56 uint64_t AOTLoader::get_saved_fingerprint(InstanceKlass* ik) {
    57   if (ik->is_anonymous()) {
    57   if (ik->is_unsafe_anonymous()) {
    58     // don't even bother
    58     // don't even bother
    59     return 0;
    59     return 0;
    60   }
    60   }
    61   FOR_ALL_AOT_HEAPS(heap) {
    61   FOR_ALL_AOT_HEAPS(heap) {
    62     AOTKlassData* klass_data = (*heap)->find_klass(ik);
    62     AOTKlassData* klass_data = (*heap)->find_klass(ik);