< prev index next >
src/hotspot/share/gc/z/zPage.inline.hpp
Print this page
*** 37,54 ****
#include "runtime/os.hpp"
#include "utilities/align.hpp"
#include "utilities/debug.hpp"
inline uint8_t ZPage::type_from_size(size_t size) const {
! switch (size) {
! case ZPageSizeSmall:
return ZPageTypeSmall;
!
! case ZPageSizeMedium:
return ZPageTypeMedium;
!
! default:
return ZPageTypeLarge;
}
}
inline const char* ZPage::type_to_string() const {
--- 37,51 ----
#include "runtime/os.hpp"
#include "utilities/align.hpp"
#include "utilities/debug.hpp"
inline uint8_t ZPage::type_from_size(size_t size) const {
! if (size == ZPageSizeSmall) {
return ZPageTypeSmall;
! } else if (size == ZPageSizeMedium) {
return ZPageTypeMedium;
! } else {
return ZPageTypeLarge;
}
}
inline const char* ZPage::type_to_string() const {
< prev index next >