RFR(M): 8073480: C2 should optimize explicit range checks
Roland Westrelin
roland.westrelin at oracle.com
Wed Feb 25 15:57:04 UTC 2015
>> 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.
Thanks for spotting that. I’ll remove it.
Roland.
More information about the hotspot-compiler-dev
mailing list