< prev index next >

src/hotspot/share/gc/z/zPage.inline.hpp

Print this page




  22  */
  23 
  24 #ifndef SHARE_GC_Z_ZPAGE_INLINE_HPP
  25 #define SHARE_GC_Z_ZPAGE_INLINE_HPP
  26 
  27 #include "gc/z/zAddress.inline.hpp"
  28 #include "gc/z/zGlobals.hpp"
  29 #include "gc/z/zLiveMap.inline.hpp"
  30 #include "gc/z/zMark.hpp"
  31 #include "gc/z/zNUMA.hpp"
  32 #include "gc/z/zPage.hpp"
  33 #include "gc/z/zPhysicalMemory.inline.hpp"
  34 #include "gc/z/zVirtualMemory.inline.hpp"
  35 #include "oops/oop.inline.hpp"
  36 #include "runtime/atomic.hpp"
  37 #include "runtime/os.hpp"
  38 #include "utilities/align.hpp"
  39 #include "utilities/debug.hpp"
  40 
  41 inline uint8_t ZPage::type_from_size(size_t size) const {
  42   switch (size) {
  43   case ZPageSizeSmall:
  44     return ZPageTypeSmall;
  45 
  46   case ZPageSizeMedium:
  47     return ZPageTypeMedium;
  48 
  49   default:
  50     return ZPageTypeLarge;
  51   }
  52 }
  53 
  54 inline const char* ZPage::type_to_string() const {
  55   switch (type()) {
  56   case ZPageTypeSmall:
  57     return "Small";
  58 
  59   case ZPageTypeMedium:
  60     return "Medium";
  61 
  62   default:
  63     assert(type() == ZPageTypeLarge, "Invalid page type");
  64     return "Large";
  65   }
  66 }
  67 
  68 inline uint32_t ZPage::object_max_count() const {
  69   switch (type()) {




  22  */
  23 
  24 #ifndef SHARE_GC_Z_ZPAGE_INLINE_HPP
  25 #define SHARE_GC_Z_ZPAGE_INLINE_HPP
  26 
  27 #include "gc/z/zAddress.inline.hpp"
  28 #include "gc/z/zGlobals.hpp"
  29 #include "gc/z/zLiveMap.inline.hpp"
  30 #include "gc/z/zMark.hpp"
  31 #include "gc/z/zNUMA.hpp"
  32 #include "gc/z/zPage.hpp"
  33 #include "gc/z/zPhysicalMemory.inline.hpp"
  34 #include "gc/z/zVirtualMemory.inline.hpp"
  35 #include "oops/oop.inline.hpp"
  36 #include "runtime/atomic.hpp"
  37 #include "runtime/os.hpp"
  38 #include "utilities/align.hpp"
  39 #include "utilities/debug.hpp"
  40 
  41 inline uint8_t ZPage::type_from_size(size_t size) const {
  42   if (size == ZPageSizeSmall) {

  43     return ZPageTypeSmall;
  44   } else if (size == ZPageSizeMedium) {

  45     return ZPageTypeMedium;
  46   } else {

  47     return ZPageTypeLarge;
  48   }
  49 }
  50 
  51 inline const char* ZPage::type_to_string() const {
  52   switch (type()) {
  53   case ZPageTypeSmall:
  54     return "Small";
  55 
  56   case ZPageTypeMedium:
  57     return "Medium";
  58 
  59   default:
  60     assert(type() == ZPageTypeLarge, "Invalid page type");
  61     return "Large";
  62   }
  63 }
  64 
  65 inline uint32_t ZPage::object_max_count() const {
  66   switch (type()) {


< prev index next >