jdk/src/share/classes/java/lang/invoke/CallSite.java
changeset 11006 734080358bec
parent 10419 12c063b39232
child 13423 17843fff200d
equal deleted inserted replaced
10777:c049b778ca61 11006:734080358bec
   264         } catch (Exception ex) { throw new Error(ex); }
   264         } catch (Exception ex) { throw new Error(ex); }
   265     }
   265     }
   266 
   266 
   267     /*package-private*/
   267     /*package-private*/
   268     void setTargetNormal(MethodHandle newTarget) {
   268     void setTargetNormal(MethodHandle newTarget) {
   269         target = newTarget;
   269         MethodHandleNatives.setCallSiteTargetNormal(this, newTarget);
   270     }
   270     }
   271     /*package-private*/
   271     /*package-private*/
   272     MethodHandle getTargetVolatile() {
   272     MethodHandle getTargetVolatile() {
   273         return (MethodHandle) unsafe.getObjectVolatile(this, TARGET_OFFSET);
   273         return (MethodHandle) unsafe.getObjectVolatile(this, TARGET_OFFSET);
   274     }
   274     }
   275     /*package-private*/
   275     /*package-private*/
   276     void setTargetVolatile(MethodHandle newTarget) {
   276     void setTargetVolatile(MethodHandle newTarget) {
   277         unsafe.putObjectVolatile(this, TARGET_OFFSET, newTarget);
   277         MethodHandleNatives.setCallSiteTargetVolatile(this, newTarget);
   278     }
   278     }
   279 
   279 
   280     // this implements the upcall from the JVM, MethodHandleNatives.makeDynamicCallSite:
   280     // this implements the upcall from the JVM, MethodHandleNatives.makeDynamicCallSite:
   281     static CallSite makeSite(MethodHandle bootstrapMethod,
   281     static CallSite makeSite(MethodHandle bootstrapMethod,
   282                              // Callee information:
   282                              // Callee information: