RFR(M): 8073480: C2 should optimize explicit range checks
Paul Sandoz
Paul.Sandoz at oracle.com
Wed Feb 25 11:37:54 UTC 2015
On Feb 19, 2015, at 4:36 PM, Roland Westrelin <roland.westrelin at oracle.com> wrote:
> http://cr.openjdk.java.net/~roland/8073480/webrev.00/
>
Small thing:
348 final HashMap<String,Method> tests = new HashMap<>();
349 {
350 final Class<?> TEST_PARAM_TYPES[] = { int[].class, int.class, boolean.class };
351 for (Method m : this.getClass().getDeclaredMethods()) {
352 if (m.getName().matches("test[0-9]+(_[0-9])?")) {
353 assert(Modifier.isStatic(m.getModifiers())) : m;
354 tests.put(m.getName(), m);
355 }
356 }
357 }
TEST_PARAM_TYPES is not used.
Paul.
More information about the hotspot-compiler-dev
mailing list