8313791: Fix just zPage.inline.hpp and xPage.inline.hpp

Reviewed-by: stefank, tschatzl
This commit is contained in:
Coleen Phillimore 2023-08-07 12:06:41 +00:00
parent 4b192a8dc3
commit 0bb6af3bc0
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -139,7 +139,7 @@ inline XPhysicalMemory& XPage::physical_memory() {
inline uint8_t XPage::numa_id() {
if (_numa_id == (uint8_t)-1) {
_numa_id = XNUMA::memory_id(XAddress::good(start()));
_numa_id = checked_cast<uint8_t>(XNUMA::memory_id(XAddress::good(start())));
}
return _numa_id;
@ -158,7 +158,7 @@ inline uint64_t XPage::last_used() const {
}
inline void XPage::set_last_used() {
_last_used = ceil(os::elapsedTime());
_last_used = (uint64_t)ceil(os::elapsedTime());
}
inline bool XPage::is_in(uintptr_t addr) const {

View File

@ -180,7 +180,7 @@ inline ZPhysicalMemory& ZPage::physical_memory() {
inline uint8_t ZPage::numa_id() {
if (_numa_id == (uint8_t)-1) {
_numa_id = ZNUMA::memory_id(untype(ZOffset::address(start())));
_numa_id = checked_cast<uint8_t>(ZNUMA::memory_id(untype(ZOffset::address(start()))));
}
return _numa_id;
@ -207,7 +207,7 @@ inline uint64_t ZPage::last_used() const {
}
inline void ZPage::set_last_used() {
_last_used = ceil(os::elapsedTime());
_last_used = (uint64_t)ceil(os::elapsedTime());
}
inline bool ZPage::is_in(zoffset offset) const {