equal
deleted
inserted
replaced
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: |