< prev index next >

src/hotspot/share/memory/metaspaceClosure.hpp

Print this page
*** 121,11 ***
      virtual MetaspaceObj::Type msotype() const = 0;
      virtual bool is_read_only_by_default() const = 0;
      virtual ~Ref() {}
  
      address obj() const {
!       return *addr();
      }
  
      address* addr() const {
        return (address*)mpp();
      }
--- 121,11 ---
      virtual MetaspaceObj::Type msotype() const = 0;
      virtual bool is_read_only_by_default() const = 0;
      virtual ~Ref() {}
  
      address obj() const {
!       return address(intptr_t(*addr()) & ~0x3); // FIXME: just in case it is tagged
      }
  
      address* addr() const {
        return (address*)mpp();
      }
< prev index next >