< prev index next >

src/hotspot/share/classfile/javaClasses.hpp

Print this page
@@ -276,10 +276,13 @@
    static int _init_lock_offset;
    static int _signers_offset;
    static int _class_loader_offset;
    static int _module_offset;
    static int _component_mirror_offset;
+   static int _primary_mirror_offset;
+   static int _secondary_mirror_offset;
+ 
    static int _name_offset;
    static int _source_file_offset;
    static int _classData_offset;
    static int _classRedefinedCount_offset;
  

@@ -290,10 +293,13 @@
  
    static void set_init_lock(oop java_class, oop init_lock);
    static void set_protection_domain(oop java_class, oop protection_domain);
    static void set_class_loader(oop java_class, oop class_loader);
    static void set_component_mirror(oop java_class, oop comp_mirror);
+   static void set_primary_mirror(oop java_class, oop comp_mirror);
+   static void set_secondary_mirror(oop java_class, oop comp_mirror);
+ 
    static void initialize_mirror_fields(Klass* k, Handle mirror, Handle protection_domain,
                                         Handle classData, TRAPS);
    static void set_mirror_module_field(JavaThread* current, Klass* K, Handle mirror, Handle module);
   public:
    static void allocate_fixup_lists();

@@ -302,10 +308,11 @@
    // Instance creation
    static void create_mirror(Klass* k, Handle class_loader, Handle module,
                              Handle protection_domain, Handle classData, TRAPS);
    static void fixup_mirror(Klass* k, TRAPS);
    static oop  create_basic_type_mirror(const char* basic_type_name, BasicType type, TRAPS);
+   static oop  create_secondary_mirror(Klass* k, Handle mirror, TRAPS);
    static void update_archived_primitive_mirror_native_pointers(oop archived_mirror) NOT_CDS_JAVA_HEAP_RETURN;
    static void update_archived_mirror_native_pointers(oop archived_mirror) NOT_CDS_JAVA_HEAP_RETURN;
  
    // Archiving
    static void serialize_offsets(SerializeClosure* f) NOT_CDS_RETURN;

@@ -336,10 +343,13 @@
    static Klass* array_klass_acquire(oop java_class);
    static void release_set_array_klass(oop java_class, Klass* klass);
    // compiler support for class operations
    static int klass_offset()                { CHECK_INIT(_klass_offset); }
    static int array_klass_offset()          { CHECK_INIT(_array_klass_offset); }
+   static int component_mirror_offset()     { CHECK_INIT(_component_mirror_offset); }
+   static int primary_mirror_offset()       { CHECK_INIT(_primary_mirror_offset); }
+   static int secondary_mirror_offset()     { CHECK_INIT(_secondary_mirror_offset); }
    // Support for classRedefinedCount field
    static int classRedefinedCount(oop the_class_mirror);
    static void set_classRedefinedCount(oop the_class_mirror, int value);
  
    // Support for embedded per-class oops

@@ -347,17 +357,20 @@
    static oop  init_lock(oop java_class);
    static void clear_init_lock(oop java_class) {
      set_init_lock(java_class, NULL);
    }
    static oop  component_mirror(oop java_class);
+   static oop  primary_mirror(oop java_class);
+   static oop  secondary_mirror(oop java_class);
+   static bool is_primary_mirror(oop java_class);
+   static bool is_secondary_mirror(oop java_class);
+ 
    static objArrayOop  signers(oop java_class);
    static void set_signers(oop java_class, objArrayOop signers);
    static oop  class_data(oop java_class);
    static void set_class_data(oop java_class, oop classData);
  
-   static int component_mirror_offset() { return _component_mirror_offset; }
- 
    static oop class_loader(oop java_class);
    static void set_module(oop java_class, oop module);
    static oop module(oop java_class);
  
    static oop name(Handle java_class, TRAPS);

@@ -1164,11 +1177,11 @@
    static bool is_method(oop obj);
  
    // Relevant integer codes (keep these in synch. with MethodHandleNatives.Constants):
    enum {
      MN_IS_METHOD             = 0x00010000, // method (not constructor)
-     MN_IS_CONSTRUCTOR        = 0x00020000, // constructor
+     MN_IS_OBJECT_CONSTRUCTOR = 0x00020000, // constructor
      MN_IS_FIELD              = 0x00040000, // field
      MN_IS_TYPE               = 0x00080000, // nested type
      MN_CALLER_SENSITIVE      = 0x00100000, // @CallerSensitive annotation detected
      MN_TRUSTED_FINAL         = 0x00200000, // trusted final field
      MN_REFERENCE_KIND_SHIFT  = 24, // refKind

@@ -1705,11 +1718,10 @@
    static void compute_offsets(InstanceKlass* k);
    static objArrayOop  cache(InstanceKlass *k);
    static void serialize_offsets(SerializeClosure* f) NOT_CDS_RETURN;
  };
  
- 
  // Interface to java.lang.InternalError objects
  
  #define INTERNALERROR_INJECTED_FIELDS(macro)                      \
    macro(java_lang_InternalError, during_unsafe_access, bool_signature, false)
  
< prev index next >