< prev index next >

src/hotspot/share/classfile/classLoaderDataShared.cpp

Print this page
*** 100,11 ***
      loader_data->modules() ->init_archived_entries(_modules);
    }
  }
  
  void ArchivedClassLoaderData::restore(ClassLoaderData* loader_data, bool do_entries, bool do_oops) {
!   assert(CDSConfig::is_using_archive(), "must be");
    assert_valid(loader_data);
    if (_modules != nullptr) { // Could be null if we have archived no modules for platform/system loaders
      ModuleEntryTable* modules = loader_data->modules();
      PackageEntryTable* packages = loader_data->packages();
  
--- 100,11 ---
      loader_data->modules() ->init_archived_entries(_modules);
    }
  }
  
  void ArchivedClassLoaderData::restore(ClassLoaderData* loader_data, bool do_entries, bool do_oops) {
!   assert(CDSConfig::is_using_full_module_graph(), "must be");
    assert_valid(loader_data);
    if (_modules != nullptr) { // Could be null if we have archived no modules for platform/system loaders
      ModuleEntryTable* modules = loader_data->modules();
      PackageEntryTable* packages = loader_data->packages();
  

*** 118,11 ***
      }
    }
  }
  
  void ArchivedClassLoaderData::clear_archived_oops() {
!   assert(CDSConfig::is_using_archive(), "must be");
    if (_modules != nullptr) {
      for (int i = 0; i < _modules->length(); i++) {
        _modules->at(i)->clear_archived_oops();
      }
    }
--- 118,11 ---
      }
    }
  }
  
  void ArchivedClassLoaderData::clear_archived_oops() {
!   assert(!CDSConfig::is_using_full_module_graph(), "must be");
    if (_modules != nullptr) {
      for (int i = 0; i < _modules->length(); i++) {
        _modules->at(i)->clear_archived_oops();
      }
    }
< prev index next >