RFR 8038418 New tests development for type profiling and speculation

Roland Westrelin roland.westrelin at oracle.com
Wed Apr 9 10:00:07 UTC 2014


Igor,

> is there any way to clear type profiling data? could please you point me to the code where type profiling is stored? I'll add clearing type profiling data to WB:clearMethodState.

You would have to do something similar to MethodData::clean_method_data() which cleans up the profiling if the class that is recorded is unloaded. It goes over all profiling entries for the method. Or maybe you can use that method and pass your own closure. Also, that method is expected to be called at a safepoint so if the profile is updated concurrently you could maybe get funny results.

Roland.


More information about the hotspot-compiler-dev mailing list