< prev index next >

src/java.base/share/classes/java/lang/invoke/MethodHandleNatives.java

Print this page

        

@@ -70,10 +70,13 @@
                                                  int start, int end,
                                                  Object[] buf, int pos,
                                                  boolean resolve,
                                                  Object ifNotAvailable);
 
+    /// ClassData support
+    static native Object classData(Class<?> lookupClass);
+
     /** Represents a context to track nmethod dependencies on CallSite instance target. */
     static class CallSiteContext implements Runnable {
         //@Injected JVM_nmethodBucket* vmdependencies;
         //@Injected jlong last_cleanup;
 

@@ -135,10 +138,19 @@
             REF_invokeStatic            = 6,
             REF_invokeSpecial           = 7,
             REF_newInvokeSpecial        = 8,
             REF_invokeInterface         = 9,
             REF_LIMIT                  = 10;
+
+        /**
+         * Flags for Lookup.ClassProperty
+         */
+        static final int
+            NESTMATE_CLASS            = 0x00000001,
+            NONFINDABLE_CLASS         = 0x00000002,
+            WEAK_CLASS                = 0x00000004,
+            ACCESS_VM_ANNOTATIONS     = 0x00100000;
     }
 
     static boolean refKindIsValid(int refKind) {
         return (refKind > REF_NONE && refKind < REF_LIMIT);
     }
< prev index next >