equal
deleted
inserted
replaced
706 void ConstantPoolCache::remove_unshareable_info() { |
706 void ConstantPoolCache::remove_unshareable_info() { |
707 walk_entries_for_initialization(/*check_only = */ false); |
707 walk_entries_for_initialization(/*check_only = */ false); |
708 } |
708 } |
709 |
709 |
710 void ConstantPoolCache::walk_entries_for_initialization(bool check_only) { |
710 void ConstantPoolCache::walk_entries_for_initialization(bool check_only) { |
711 assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "sanity"); |
711 Arguments::assert_is_dumping_archive(); |
712 // When dumping the archive, we want to clean up the ConstantPoolCache |
712 // When dumping the archive, we want to clean up the ConstantPoolCache |
713 // to remove any effect of linking due to the execution of Java code -- |
713 // to remove any effect of linking due to the execution of Java code -- |
714 // each ConstantPoolCacheEntry will have the same contents as if |
714 // each ConstantPoolCacheEntry will have the same contents as if |
715 // ConstantPoolCache::initialize has just returned: |
715 // ConstantPoolCache::initialize has just returned: |
716 // |
716 // |