equal
deleted
inserted
replaced
333 |
333 |
334 |
334 |
335 #ifndef PRODUCT |
335 #ifndef PRODUCT |
336 void CollectedHeap::check_for_non_bad_heap_word_value(HeapWord* addr, size_t size) { |
336 void CollectedHeap::check_for_non_bad_heap_word_value(HeapWord* addr, size_t size) { |
337 if (CheckMemoryInitialization && ZapUnusedHeapArea) { |
337 if (CheckMemoryInitialization && ZapUnusedHeapArea) { |
338 for (size_t slot = 0; slot < size; slot += 1) { |
338 // please note mismatch between size (in 32/64 bit words), and ju_addr that always point to a 32 bit word |
339 assert((*(intptr_t*) (addr + slot)) == ((intptr_t) badHeapWordVal), |
339 for (juint* ju_addr = reinterpret_cast<juint*>(addr); ju_addr < reinterpret_cast<juint*>(addr + size); ++ju_addr) { |
340 "Found non badHeapWordValue in pre-allocation check"); |
340 assert(*ju_addr == badHeapWordVal, "Found non badHeapWordValue in pre-allocation check"); |
341 } |
341 } |
342 } |
342 } |
343 } |
343 } |
344 #endif // PRODUCT |
344 #endif // PRODUCT |
345 |
345 |