Java Code Examples for java.lang.invoke.SwitchPoint#invalidateAll()
The following examples show how to use
java.lang.invoke.SwitchPoint#invalidateAll() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CompiledFunction.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
boolean requestRecompile(final RewriteException e) { final Type retType = e.getReturnType(); final Type previousFailedType = invalidatedProgramPoints.put(e.getProgramPoint(), retType); if (previousFailedType != null && !previousFailedType.narrowerThan(retType)) { final StackTraceElement[] stack = e.getStackTrace(); final String functionId = stack.length == 0 ? data.getName() : stack[0].getClassName() + "." + stack[0].getMethodName(); log.info("RewriteException for an already invalidated program point ", e.getProgramPoint(), " in ", functionId, ". This is okay for a recursive function invocation, but a bug otherwise."); return false; } SwitchPoint.invalidateAll(new SwitchPoint[] { optimisticAssumptions }); return true; }
Example 2
Source File: CompiledFunction.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
boolean requestRecompile(final RewriteException e) { final Type retType = e.getReturnType(); final Type previousFailedType = invalidatedProgramPoints.put(e.getProgramPoint(), retType); if (previousFailedType != null && !previousFailedType.narrowerThan(retType)) { final StackTraceElement[] stack = e.getStackTrace(); final String functionId = stack.length == 0 ? data.getName() : stack[0].getClassName() + "." + stack[0].getMethodName(); log.info("RewriteException for an already invalidated program point ", e.getProgramPoint(), " in ", functionId, ". This is okay for a recursive function invocation, but a bug otherwise."); return false; } SwitchPoint.invalidateAll(new SwitchPoint[] { optimisticAssumptions }); return true; }
Example 3
Source File: CompiledFunction.java From hottub with GNU General Public License v2.0 | 6 votes |
boolean requestRecompile(final RewriteException e) { final Type retType = e.getReturnType(); final Type previousFailedType = invalidatedProgramPoints.put(e.getProgramPoint(), retType); if (previousFailedType != null && !previousFailedType.narrowerThan(retType)) { final StackTraceElement[] stack = e.getStackTrace(); final String functionId = stack.length == 0 ? data.getName() : stack[0].getClassName() + "." + stack[0].getMethodName(); log.info("RewriteException for an already invalidated program point ", e.getProgramPoint(), " in ", functionId, ". This is okay for a recursive function invocation, but a bug otherwise."); return false; } SwitchPoint.invalidateAll(new SwitchPoint[] { optimisticAssumptions }); return true; }
Example 4
Source File: CompiledFunction.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
boolean requestRecompile(final RewriteException e) { final Type retType = e.getReturnType(); final Type previousFailedType = invalidatedProgramPoints.put(e.getProgramPoint(), retType); if (previousFailedType != null && !previousFailedType.narrowerThan(retType)) { final StackTraceElement[] stack = e.getStackTrace(); final String functionId = stack.length == 0 ? data.getName() : stack[0].getClassName() + "." + stack[0].getMethodName(); log.info("RewriteException for an already invalidated program point ", e.getProgramPoint(), " in ", functionId, ". This is okay for a recursive function invocation, but a bug otherwise."); return false; } SwitchPoint.invalidateAll(new SwitchPoint[] { optimisticAssumptions }); return true; }
Example 5
Source File: PropertyMap.java From jdk8u_nashorn with GNU General Public License v2.0 | 5 votes |
/** * Indicate that proto itself has changed in hierarchy somewhere. */ synchronized void invalidateAllProtoSwitchPoints() { if (protoSwitches != null) { final int size = protoSwitches.size(); if (size > 0) { if (Context.DEBUG) { protoInvalidations.add(size); } SwitchPoint.invalidateAll(protoSwitches.values().toArray(new SwitchPoint[size])); protoSwitches.clear(); } } }
Example 6
Source File: AccessorProperty.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@SuppressWarnings("unused") private static Object invalidateSwitchPoint(final AccessorProperty property, final Object obj) { if (!property.builtinSwitchPoint.hasBeenInvalidated()) { SwitchPoint.invalidateAll(new SwitchPoint[] { property.builtinSwitchPoint }); } return obj; }
Example 7
Source File: PropertyMap.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Indicate that a prototype property has changed. * * @param key {@link Property} key to invalidate. */ synchronized void invalidateProtoSwitchPoint(final Object key) { if (protoSwitches != null) { final SwitchPoint sp = protoSwitches.get(key); if (sp != null) { protoSwitches.remove(key); if (Context.DEBUG) { protoInvalidations.increment(); } SwitchPoint.invalidateAll(new SwitchPoint[]{sp}); } } }
Example 8
Source File: PropertyMap.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Indicate that a prototype property has changed. * * @param key {@link Property} key to invalidate. */ synchronized void invalidateProtoSwitchPoint(final String key) { if (protoSwitches != null) { final SwitchPoint sp = protoSwitches.get(key); if (sp != null) { protoSwitches.remove(key); if (Context.DEBUG) { protoInvalidations.increment(); } SwitchPoint.invalidateAll(new SwitchPoint[]{sp}); } } }
Example 9
Source File: PropertyMap.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Indicate that proto itself has changed in hierarchy somewhere. */ synchronized void invalidateAllProtoSwitchPoints() { if (protoSwitches != null) { final int size = protoSwitches.size(); if (size > 0) { if (Context.DEBUG) { protoInvalidations.add(size); } SwitchPoint.invalidateAll(protoSwitches.values().toArray(new SwitchPoint[size])); protoSwitches.clear(); } } }
Example 10
Source File: PropertyMap.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Indicate that a prototype property has changed. * * @param property {@link Property} to invalidate. */ synchronized void invalidateProtoGetSwitchPoint(final Property property) { if (protoGetSwitches != null) { final String key = property.getKey(); final SwitchPoint sp = protoGetSwitches.get(key); if (sp != null) { protoGetSwitches.remove(key); if (Context.DEBUG) { protoInvalidations++; } SwitchPoint.invalidateAll(new SwitchPoint[] { sp }); } } }
Example 11
Source File: AccessorProperty.java From jdk8u_nashorn with GNU General Public License v2.0 | 5 votes |
@SuppressWarnings("unused") private static Object invalidateSwitchPoint(final AccessorProperty property, final Object obj) { if (!property.builtinSwitchPoint.hasBeenInvalidated()) { SwitchPoint.invalidateAll(new SwitchPoint[] { property.builtinSwitchPoint }); } return obj; }
Example 12
Source File: Global.java From jdk8u_nashorn with GNU General Public License v2.0 | 4 votes |
private synchronized void invalidateLexicalSwitchPoint() { if (lexicalScopeSwitchPoint != null) { context.getLogger(GlobalConstants.class).info("Invalidating non-constant globals on lexical scope update"); SwitchPoint.invalidateAll(new SwitchPoint[]{ lexicalScopeSwitchPoint }); } }
Example 13
Source File: GlobalConstants.java From hottub with GNU General Public License v2.0 | 4 votes |
private void invalidate(final int count) { if (!sp.hasBeenInvalidated()) { SwitchPoint.invalidateAll(new SwitchPoint[] { sp }); invalidations += count; } }
Example 14
Source File: Global.java From hottub with GNU General Public License v2.0 | 4 votes |
private synchronized void invalidateLexicalSwitchPoint() { if (lexicalScopeSwitchPoint != null) { context.getLogger(GlobalConstants.class).info("Invalidating non-constant globals on lexical scope update"); SwitchPoint.invalidateAll(new SwitchPoint[]{ lexicalScopeSwitchPoint }); } }
Example 15
Source File: GlobalConstants.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private void invalidate(final int count) { if (!sp.hasBeenInvalidated()) { SwitchPoint.invalidateAll(new SwitchPoint[] { sp }); invalidations += count; } }
Example 16
Source File: Global.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private synchronized void invalidateLexicalSwitchPoint() { if (lexicalScopeSwitchPoint != null) { context.getLogger(GlobalConstants.class).info("Invalidating non-constant globals on lexical scope update"); SwitchPoint.invalidateAll(new SwitchPoint[]{ lexicalScopeSwitchPoint }); } }
Example 17
Source File: GlobalConstants.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private void invalidate(final int count) { if (!sp.hasBeenInvalidated()) { SwitchPoint.invalidateAll(new SwitchPoint[] { sp }); invalidations += count; } }
Example 18
Source File: Global.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private synchronized void invalidateLexicalSwitchPoint() { if (lexicalScopeSwitchPoint != null) { context.getLogger(GlobalConstants.class).info("Invalidating non-constant globals on lexical scope update"); SwitchPoint.invalidateAll(new SwitchPoint[]{ lexicalScopeSwitchPoint }); } }
Example 19
Source File: GlobalConstants.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private void invalidate(final int count) { if (!sp.hasBeenInvalidated()) { SwitchPoint.invalidateAll(new SwitchPoint[] { sp }); invalidations += count; } }
Example 20
Source File: GlobalConstants.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private void invalidate(final int count) { if (!sp.hasBeenInvalidated()) { SwitchPoint.invalidateAll(new SwitchPoint[] { sp }); invalidations += count; } }