src/share/vm/memory/metachunk.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
hotspot Cdiff src/share/vm/memory/metachunk.cpp
src/share/vm/memory/metachunk.cpp
Print this page
*** 96,111 ****
used_word_size(), free_word_size());
}
}
#ifndef PRODUCT
! void Metachunk::mangle() {
// Mangle the payload of the chunk and not the links that
// maintain list of chunks.
! HeapWord* start = (HeapWord*)(bottom() + overhead());
! size_t size = word_size() - overhead();
! Copy::fill_to_words(start, size, metadata_chunk_initialize);
}
#endif // PRODUCT
void Metachunk::verify() {
#ifdef ASSERT
--- 96,119 ----
used_word_size(), free_word_size());
}
}
#ifndef PRODUCT
! static void overwrite_chunk_payload(Metachunk* chunk, juint wordValue) {
// Mangle the payload of the chunk and not the links that
// maintain list of chunks.
! HeapWord* start = (HeapWord*)(chunk->bottom() + chunk->overhead());
! size_t size = chunk->word_size() - chunk->overhead();
! Copy::fill_to_words(start, size, wordValue);
! }
!
! void Metachunk::mangle() {
! overwrite_chunk_payload(this, metadata_chunk_initialize);
! }
!
! void Metachunk::zap() {
! overwrite_chunk_payload(this, badMetaWordVal);
}
#endif // PRODUCT
void Metachunk::verify() {
#ifdef ASSERT
src/share/vm/memory/metachunk.cpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File