< prev index next >

src/share/vm/gc/g1/heapRegion.hpp

Print this page
rev 8461 : imported patch webrev1.patch
rev 8462 : [mq]: version3


 401 
 402   void zero_marked_bytes()      {
 403     _prev_marked_bytes = _next_marked_bytes = 0;
 404   }
 405 
 406   const char* get_type_str() const { return _type.get_str(); }
 407   const char* get_short_type_str() const { return _type.get_short_str(); }
 408 
 409   bool is_free() const { return _type.is_free(); }
 410 
 411   bool is_young()    const { return _type.is_young();    }
 412   bool is_eden()     const { return _type.is_eden();     }
 413   bool is_survivor() const { return _type.is_survivor(); }
 414 
 415   bool is_humongous() const { return _type.is_humongous(); }
 416   bool is_starts_humongous() const { return _type.is_starts_humongous(); }
 417   bool is_continues_humongous() const { return _type.is_continues_humongous();   }
 418 
 419   bool is_old() const { return _type.is_old(); }
 420 


 421   bool is_pinned() const { return _type.is_pinned(); }




 422   bool is_archive() const { return _type.is_archive(); }
 423 
 424   // For a humongous region, region in which it starts.
 425   HeapRegion* humongous_start_region() const {
 426     return _humongous_start_region;
 427   }
 428 
 429   // Return the number of distinct regions that are covered by this region:
 430   // 1 if the region is not humongous, >= 1 if the region is humongous.
 431   uint region_num() const {
 432     if (!is_humongous()) {
 433       return 1U;
 434     } else {
 435       assert(is_starts_humongous(), "doesn't make sense on HC regions");
 436       assert(capacity() % HeapRegion::GrainBytes == 0, "sanity");
 437       return (uint) (capacity() >> HeapRegion::LogOfHRGrainBytes);
 438     }
 439   }
 440 
 441   // Return the index + 1 of the last HC regions that's associated




 401 
 402   void zero_marked_bytes()      {
 403     _prev_marked_bytes = _next_marked_bytes = 0;
 404   }
 405 
 406   const char* get_type_str() const { return _type.get_str(); }
 407   const char* get_short_type_str() const { return _type.get_short_str(); }
 408 
 409   bool is_free() const { return _type.is_free(); }
 410 
 411   bool is_young()    const { return _type.is_young();    }
 412   bool is_eden()     const { return _type.is_eden();     }
 413   bool is_survivor() const { return _type.is_survivor(); }
 414 
 415   bool is_humongous() const { return _type.is_humongous(); }
 416   bool is_starts_humongous() const { return _type.is_starts_humongous(); }
 417   bool is_continues_humongous() const { return _type.is_continues_humongous();   }
 418 
 419   bool is_old() const { return _type.is_old(); }
 420 
 421   // A pinned region contains objects which are not moved by garbage collections.
 422   // Humongous regions and archive regions are pinned.
 423   bool is_pinned() const { return _type.is_pinned(); }
 424 
 425   // An archive region is a pinned region, also tagged as old, which
 426   // should not be marked during mark/sweep. This allows the address
 427   // space to be shared by JVM instances.
 428   bool is_archive() const { return _type.is_archive(); }
 429 
 430   // For a humongous region, region in which it starts.
 431   HeapRegion* humongous_start_region() const {
 432     return _humongous_start_region;
 433   }
 434 
 435   // Return the number of distinct regions that are covered by this region:
 436   // 1 if the region is not humongous, >= 1 if the region is humongous.
 437   uint region_num() const {
 438     if (!is_humongous()) {
 439       return 1U;
 440     } else {
 441       assert(is_starts_humongous(), "doesn't make sense on HC regions");
 442       assert(capacity() % HeapRegion::GrainBytes == 0, "sanity");
 443       return (uint) (capacity() >> HeapRegion::LogOfHRGrainBytes);
 444     }
 445   }
 446 
 447   // Return the index + 1 of the last HC regions that's associated


< prev index next >