< prev index next >

src/hotspot/share/cds/aotArtifactFinder.cpp

Print this page
*** 31,10 ***
--- 31,11 ---
  #include "classfile/systemDictionaryShared.hpp"
  #include "logging/log.hpp"
  #include "memory/metaspaceClosure.hpp"
  #include "oops/instanceKlass.hpp"
  #include "oops/objArrayKlass.hpp"
+ #include "oops/trainingData.hpp"
  #include "utilities/resourceHash.hpp"
  
  // All the classes that should be included in the AOT cache (in at least the "allocated" state)
  static GrowableArrayCHeap<Klass*, mtClassShared>* _all_cached_classes = nullptr;
  

*** 160,10 ***
--- 161,12 ---
        }
      }
    });
  
    end_scanning_for_oops();
+ 
+   TrainingData::cleanup_training_data();
  }
  
  void AOTArtifactFinder::start_scanning_for_oops() {
  #if INCLUDE_CDS_JAVA_HEAP
    if (CDSConfig::is_dumping_heap()) {
< prev index next >