< prev index next >

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

Print this page

        

@@ -24,11 +24,10 @@
 #ifndef SHARE_GC_Z_ZADDRESS_INLINE_HPP
 #define SHARE_GC_Z_ZADDRESS_INLINE_HPP
 
 #include "gc/z/zAddress.hpp"
 #include "gc/z/zGlobals.hpp"
-#include "utilities/globalDefinitions.hpp"
 #include "utilities/macros.hpp"
 
 inline bool ZAddress::is_null(uintptr_t value) {
   return value == 0;
 }

@@ -80,20 +79,10 @@
 
 inline bool ZAddress::is_remapped(uintptr_t value) {
   return value & ZAddressMetadataRemapped;
 }
 
-inline bool ZAddress::is_in(uintptr_t value) {
-  // Check that exactly one non-offset bit is set
-  if (!is_power_of_2(value & ~ZAddressOffsetMask)) {
-    return false;
-  }
-
-  // Check that one of the non-finalizable metadata is set
-  return value & (ZAddressMetadataMask & ~ZAddressMetadataFinalizable);
-}
-
 inline uintptr_t ZAddress::address(uintptr_t value) {
   return value | ZAddressBase;
 }
 
 inline uintptr_t ZAddress::offset(uintptr_t value) {
< prev index next >