< prev index next >

src/hotspot/share/oops/compressedKlass.hpp

Print this page
@@ -249,10 +249,13 @@
    inline static void check_encodable(const void* addr);
    // Given a narrow Klass ID, check that it is valid according to current encoding
    inline static void check_valid_narrow_klass_id(narrowKlass nk);
  #endif
  
+   // Given a narrow Klass ID, returns true if it appears to be valid
+   inline static bool is_valid_narrow_klass_id(narrowKlass nk);
+ 
    // Returns whether the pointer is in the memory region used for encoding compressed
    // class pointers.  This includes CDS.
    static inline bool is_encodable(const void* addr) {
      // An address can only be encoded if:
      //
< prev index next >