Mercurial > hg > graal-compiler
comparison src/share/vm/memory/metaspace.cpp @ 6786:5baec2e69518
7200615: NPG: optimized VM build is broken
Reviewed-by: kvn
author | jmasa |
---|---|
date | Tue, 25 Sep 2012 07:05:55 -0700 |
parents | 8da5e203b993 |
children | 685df3c6f84b |
comparison
equal
deleted
inserted
replaced
6762:04ed664b7e30 | 6786:5baec2e69518 |
---|---|
2516 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 |
2517 " free " SIZE_FORMAT " capacity " SIZE_FORMAT | 2517 " free " SIZE_FORMAT " capacity " SIZE_FORMAT |
2518 " waste " SIZE_FORMAT, curr_total, used, free, capacity, waste); | 2518 " waste " SIZE_FORMAT, curr_total, used, free, capacity, waste); |
2519 } | 2519 } |
2520 | 2520 |
2521 #ifndef PRODUCT | 2521 #ifdef ASSERT |
2522 void SpaceManager::mangle_freed_chunks() { | 2522 void SpaceManager::mangle_freed_chunks() { |
2523 for (ChunkIndex index = SmallIndex; | 2523 for (ChunkIndex index = SmallIndex; |
2524 index < NumberOfFreeLists; | 2524 index < NumberOfFreeLists; |
2525 index = next_chunk_index(index)) { | 2525 index = next_chunk_index(index)) { |
2526 for (Metachunk* curr = chunks_in_use(index); | 2526 for (Metachunk* curr = chunks_in_use(index); |
2534 curr, chunks_in_use(MediumIndex))); | 2534 curr, chunks_in_use(MediumIndex))); |
2535 curr->mangle(); | 2535 curr->mangle(); |
2536 } | 2536 } |
2537 } | 2537 } |
2538 } | 2538 } |
2539 #endif // PRODUCT | 2539 #endif // ASSERT |
2540 | 2540 |
2541 | 2541 |
2542 // MetaspaceAux | 2542 // MetaspaceAux |
2543 | 2543 |
2544 size_t MetaspaceAux::used_in_bytes(Metaspace::MetadataType mdtype) { | 2544 size_t MetaspaceAux::used_in_bytes(Metaspace::MetadataType mdtype) { |