equal
deleted
inserted
replaced
695 void ConstantPoolCache::remove_unshareable_info() { |
695 void ConstantPoolCache::remove_unshareable_info() { |
696 walk_entries_for_initialization(/*check_only = */ false); |
696 walk_entries_for_initialization(/*check_only = */ false); |
697 } |
697 } |
698 |
698 |
699 void ConstantPoolCache::walk_entries_for_initialization(bool check_only) { |
699 void ConstantPoolCache::walk_entries_for_initialization(bool check_only) { |
700 assert(DumpSharedSpaces, "sanity"); |
700 assert(DumpSharedSpaces || DynamicDumpSharedSpaces, "sanity"); |
701 // When dumping the archive, we want to clean up the ConstantPoolCache |
701 // When dumping the archive, we want to clean up the ConstantPoolCache |
702 // to remove any effect of linking due to the execution of Java code -- |
702 // to remove any effect of linking due to the execution of Java code -- |
703 // each ConstantPoolCacheEntry will have the same contents as if |
703 // each ConstantPoolCacheEntry will have the same contents as if |
704 // ConstantPoolCache::initialize has just returned: |
704 // ConstantPoolCache::initialize has just returned: |
705 // |
705 // |