src/hotspot/share/gc/shared/collectedHeap.cpp
changeset 58178 bb1aaed00341
parent 58015 dd84de796f2c
child 58199 595fcbebaa77
child 58229 722a19a45994
equal deleted inserted replaced
58177:4932dce35882 58178:bb1aaed00341
   172 bool CollectedHeap::request_concurrent_phase(const char* phase) {
   172 bool CollectedHeap::request_concurrent_phase(const char* phase) {
   173   return false;
   173   return false;
   174 }
   174 }
   175 
   175 
   176 bool CollectedHeap::is_oop(oop object) const {
   176 bool CollectedHeap::is_oop(oop object) const {
   177   if (!check_obj_alignment(object)) {
   177   if (!is_object_aligned(object)) {
   178     return false;
   178     return false;
   179   }
   179   }
   180 
   180 
   181   if (!is_in(object)) {
   181   if (!is_in(object)) {
   182     return false;
   182     return false;
   342   }
   342   }
   343 }
   343 }
   344 #endif // PRODUCT
   344 #endif // PRODUCT
   345 
   345 
   346 void CollectedHeap::check_oop_location(void* addr) const {
   346 void CollectedHeap::check_oop_location(void* addr) const {
   347   assert(check_obj_alignment(addr), "address is not aligned");
   347   assert(is_object_aligned(addr), "address is not aligned");
   348   assert(_reserved.contains(addr),  "address is not in reserved heap");
   348   assert(_reserved.contains(addr),  "address is not in reserved heap");
   349 }
   349 }
   350 
   350 
   351 size_t CollectedHeap::max_tlab_size() const {
   351 size_t CollectedHeap::max_tlab_size() const {
   352   // TLABs can't be bigger than we can fill with a int[Integer.MAX_VALUE].
   352   // TLABs can't be bigger than we can fill with a int[Integer.MAX_VALUE].