< prev index next >

src/hotspot/share/gc/shared/collectedHeap.cpp

Print this page
*** 333,13 ***
  
  
  #ifndef PRODUCT
  void CollectedHeap::check_for_non_bad_heap_word_value(HeapWord* addr, size_t size) {
    if (CheckMemoryInitialization && ZapUnusedHeapArea) {
!     // please not mismatch between size (in 32/64 bit words), and ju_addr that always point to a 32 bit word
      for (juint* ju_addr = reinterpret_cast<juint*>(addr); ju_addr < reinterpret_cast<juint*>(addr + size); ++ju_addr) {
!        assert(*ju_addr == badHeapWordVal, "Found non badHeapWordValue in pre-allocation check");
      }
    }
  }
  #endif // PRODUCT
  
--- 333,13 ---
  
  
  #ifndef PRODUCT
  void CollectedHeap::check_for_non_bad_heap_word_value(HeapWord* addr, size_t size) {
    if (CheckMemoryInitialization && ZapUnusedHeapArea) {
!     // please note mismatch between size (in 32/64 bit words), and ju_addr that always point to a 32 bit word
      for (juint* ju_addr = reinterpret_cast<juint*>(addr); ju_addr < reinterpret_cast<juint*>(addr + size); ++ju_addr) {
!       assert(*ju_addr == badHeapWordVal, "Found non badHeapWordValue in pre-allocation check");
      }
    }
  }
  #endif // PRODUCT
  
< prev index next >