RFR 8038418 New tests development for type profiling and speculation
Pavel Punegov
pavel.punegov at oracle.com
Thu Apr 10 22:56:06 UTC 2014
Roland,
See new webrev:
http://cr.openjdk.java.net/~iignatyev/ppunegov/8038418/webrev.03/
I changed all test scenarios to have cases for each of the tested profile
points, made refactoring, so now scenarios are smaller and easier to read.
Igor I. helped me to add OffTest.java that runs the same tests but with
different combinations of -XX:TypeProfiling=XYZ and -XX:+/-TypeSpeculation.
Running this test crashes VM, see the bug:
https://bugs.openjdk.java.net/browse/JDK-8039975
On Thu, 10 of Apr 2014 09:51:06 Roland Westrelin wrote:
>> http://cr.openjdk.java.net/~iignatyev/ppunegov/8038418/webrev.02/
>
> Thanks Pavel. Overall that looks good to me. But this:
>
> 67 public Integer run(T obj) {
> 68 if (isReturnType) {
> 69 T t = collectReturnType(obj);
> 70 return inlinee(t);
> 71 } else {
> 72 return inlinee(obj);
> 73 }
> 74 }
>
> exercises profiling from parameter obj to the run method at line 72 and from
> return value from collectReturnType at line 70 but not from any argument
> profiling. You could have a 3rd case where obj is loaded from the current
> instance and passed to inlinee(). Then it would use argument profiling.
>
> Roland.
--
Thanks,
Pavel Punegov
More information about the hotspot-compiler-dev
mailing list