< prev index next >

src/hotspot/share/classfile/javaClasses.hpp

Print this page




 902  public:
 903   enum {
 904    // The timestamp is a long field and may need to be adjusted for alignment.
 905    hc_timestamp_offset  = hc_discovered_offset + 1
 906   };
 907   enum {
 908    hc_static_clock_offset = 0
 909   };
 910 
 911   static int timestamp_offset;
 912   static int static_clock_offset;
 913 
 914   // Accessors
 915   static jlong timestamp(oop ref);
 916 
 917   // Accessors for statics
 918   static jlong clock();
 919   static void set_clock(jlong value);
 920 };
 921 














 922 // Interface to java.lang.invoke.MethodHandle objects
 923 
 924 class MethodHandleEntry;
 925 
 926 class java_lang_invoke_MethodHandle: AllStatic {
 927   friend class JavaClasses;
 928 
 929  private:
 930   static int _type_offset;               // the MethodType of this MH
 931   static int _form_offset;               // the LambdaForm of this MH
 932 
 933   static void compute_offsets();
 934 
 935  public:
 936   // Accessors
 937   static oop            type(oop mh);
 938   static void       set_type(oop mh, oop mtype);
 939 
 940   static oop            form(oop mh);
 941   static void       set_form(oop mh, oop lform);




 902  public:
 903   enum {
 904    // The timestamp is a long field and may need to be adjusted for alignment.
 905    hc_timestamp_offset  = hc_discovered_offset + 1
 906   };
 907   enum {
 908    hc_static_clock_offset = 0
 909   };
 910 
 911   static int timestamp_offset;
 912   static int static_clock_offset;
 913 
 914   // Accessors
 915   static jlong timestamp(oop ref);
 916 
 917   // Accessors for statics
 918   static jlong clock();
 919   static void set_clock(jlong value);
 920 };
 921 
 922 // Interface to java.lang.Continuation objects
 923 
 924 class java_lang_Continuation: AllStatic {
 925 public:
 926  enum {
 927   hc_target_offset = 1,
 928  };
 929 
 930  static int target_offset;
 931 
 932  // Accessors
 933  static inline oop target(oop ref);
 934 };
 935 
 936 // Interface to java.lang.invoke.MethodHandle objects
 937 
 938 class MethodHandleEntry;
 939 
 940 class java_lang_invoke_MethodHandle: AllStatic {
 941   friend class JavaClasses;
 942 
 943  private:
 944   static int _type_offset;               // the MethodType of this MH
 945   static int _form_offset;               // the LambdaForm of this MH
 946 
 947   static void compute_offsets();
 948 
 949  public:
 950   // Accessors
 951   static oop            type(oop mh);
 952   static void       set_type(oop mh, oop mtype);
 953 
 954   static oop            form(oop mh);
 955   static void       set_form(oop mh, oop lform);


< prev index next >