hotspot/src/share/vm/memory/metaspace.cpp
changeset 37139 9d88cc422fb8
parent 36177 b2b76aba8e42
child 37151 bcda1fb89431
equal deleted inserted replaced
37134:9dd3975ca940 37139:9d88cc422fb8
   757   void print_on(outputStream* st) const;
   757   void print_on(outputStream* st) const;
   758   void locked_print_chunks_in_use_on(outputStream* st) const;
   758   void locked_print_chunks_in_use_on(outputStream* st) const;
   759 
   759 
   760   void verify();
   760   void verify();
   761   void verify_chunk_size(Metachunk* chunk);
   761   void verify_chunk_size(Metachunk* chunk);
   762   NOT_PRODUCT(void mangle_freed_chunks();)
       
   763 #ifdef ASSERT
   762 #ifdef ASSERT
   764   void verify_allocated_blocks_words();
   763   void verify_allocated_blocks_words();
   765 #endif
   764 #endif
   766 
   765 
   767   size_t get_raw_word_size(size_t word_size) {
   766   size_t get_raw_word_size(size_t word_size) {
  2517   out->print_cr("total of all chunks "  SIZE_FORMAT " used " SIZE_FORMAT
  2516   out->print_cr("total of all chunks "  SIZE_FORMAT " used " SIZE_FORMAT
  2518                 " free " SIZE_FORMAT " capacity " SIZE_FORMAT
  2517                 " free " SIZE_FORMAT " capacity " SIZE_FORMAT
  2519                 " waste " SIZE_FORMAT, curr_total, used, free, capacity, waste);
  2518                 " waste " SIZE_FORMAT, curr_total, used, free, capacity, waste);
  2520 }
  2519 }
  2521 
  2520 
  2522 #ifndef PRODUCT
       
  2523 void SpaceManager::mangle_freed_chunks() {
       
  2524   for (ChunkIndex index = ZeroIndex;
       
  2525        index < NumberOfInUseLists;
       
  2526        index = next_chunk_index(index)) {
       
  2527     for (Metachunk* curr = chunks_in_use(index);
       
  2528          curr != NULL;
       
  2529          curr = curr->next()) {
       
  2530       curr->mangle();
       
  2531     }
       
  2532   }
       
  2533 }
       
  2534 #endif // PRODUCT
       
  2535 
       
  2536 // MetaspaceAux
  2521 // MetaspaceAux
  2537 
  2522 
  2538 
  2523 
  2539 size_t MetaspaceAux::_capacity_words[] = {0, 0};
  2524 size_t MetaspaceAux::_capacity_words[] = {0, 0};
  2540 size_t MetaspaceAux::_used_words[] = {0, 0};
  2525 size_t MetaspaceAux::_used_words[] = {0, 0};