< prev index next >

src/hotspot/share/oops/klass.hpp

Print this page

        

@@ -160,11 +160,14 @@
 protected:
 
   // Constructor
   Klass();
 
-  void* operator new(size_t size, ClassLoaderData* loader_data, size_t word_size, TRAPS) throw();
+  void* operator new(size_t size, ClassLoaderData* loader_data, size_t word_size, bool is_value, TRAPS) throw();
+  void* operator new(size_t size, ClassLoaderData* loader_data, size_t word_size, TRAPS) throw() {
+   return operator new (size, loader_data, word_size, false, THREAD);
+  }
 
  public:
   enum DefaultsLookupMode { find_defaults, skip_defaults };
   enum OverpassLookupMode { find_overpass, skip_overpass };
   enum StaticLookupMode   { find_static,   skip_static };

@@ -687,10 +690,13 @@
   static narrowKlass encode_klass_not_null(Klass* v);
   static narrowKlass encode_klass(Klass* v);
 
   static Klass* decode_klass_not_null(narrowKlass v);
   static Klass* decode_klass(narrowKlass v);
+
+  static bool decode_ptr_is_value_type(narrowKlass v);
+  static bool ptr_is_value_type(Klass* v);
 };
 
 // Helper to convert the oop iterate macro suffixes into bool values that can be used by template functions.
 #define nvs_nv_to_bool true
 #define nvs_v_to_bool  false
< prev index next >