src/jdk/internal/dynalink/DynamicLinker.java

changeset 962
ac62e33a99b0
parent 443
01212f5e7dad
child 963
e2497b11a021
     1.1 --- a/src/jdk/internal/dynalink/DynamicLinker.java	Tue Aug 19 20:43:03 2014 +0100
     1.2 +++ b/src/jdk/internal/dynalink/DynamicLinker.java	Wed Aug 20 10:25:28 2014 +0200
     1.3 @@ -158,8 +158,8 @@
     1.4       * @param linkerServices the linkerServices used by the linker, created by the factory.
     1.5       * @param runtimeContextArgCount see {@link DynamicLinkerFactory#setRuntimeContextArgCount(int)}
     1.6       */
     1.7 -    DynamicLinker(LinkerServices linkerServices, int runtimeContextArgCount, boolean syncOnRelink,
     1.8 -            int unstableRelinkThreshold) {
     1.9 +    DynamicLinker(final LinkerServices linkerServices, final int runtimeContextArgCount, final boolean syncOnRelink,
    1.10 +            final int unstableRelinkThreshold) {
    1.11          if(runtimeContextArgCount < 0) {
    1.12              throw new IllegalArgumentException("runtimeContextArgCount < 0");
    1.13          }
    1.14 @@ -199,7 +199,7 @@
    1.15      private static final MethodHandle RELINK = Lookup.findOwnSpecial(MethodHandles.lookup(), RELINK_METHOD_NAME,
    1.16              MethodHandle.class, RelinkableCallSite.class, int.class, Object[].class);
    1.17  
    1.18 -    private MethodHandle createRelinkAndInvokeMethod(final RelinkableCallSite callSite, int relinkCount) {
    1.19 +    private MethodHandle createRelinkAndInvokeMethod(final RelinkableCallSite callSite, final int relinkCount) {
    1.20          // Make a bound MH of invoke() for this linker and call site
    1.21          final MethodHandle boundRelinker = MethodHandles.insertArguments(RELINK, 0, this, callSite, Integer.valueOf(
    1.22                  relinkCount));
    1.23 @@ -219,7 +219,7 @@
    1.24       * @throws Exception rethrows any exception thrown by the linkers
    1.25       */
    1.26      @SuppressWarnings("unused")
    1.27 -    private MethodHandle relink(RelinkableCallSite callSite, int relinkCount, Object... arguments) throws Exception {
    1.28 +    private MethodHandle relink(final RelinkableCallSite callSite, final int relinkCount, final Object... arguments) throws Exception {
    1.29          final CallSiteDescriptor callSiteDescriptor = callSite.getDescriptor();
    1.30          final boolean unstableDetectionEnabled = unstableRelinkThreshold > 0;
    1.31          final boolean callSiteUnstable = unstableDetectionEnabled && relinkCount >= unstableRelinkThreshold;

mercurial