RFR 8038418 New tests development for type profiling and speculation
Roland Westrelin
roland.westrelin at oracle.com
Wed Apr 9 08:38:42 UTC 2014
Hi Igor,
> No we use new class loader for each execution and clear state of all methods in scenario through WhiteBox::clearMethodState():
>> MethodData* mdo = mh->method_data();
>>
>> if (mdo != NULL) {
>> mdo->init();
>> ResourceMark rm;
>> int arg_count = mdo->method()->size_of_parameters();
>> for (int i = 0; i < arg_count; i++) {
>> mdo->set_arg_modified(i, 0);
>> }
>> }
> I think it should also clear type profiling data. Am I right?
Using your own class loaders should. The call to set_arg_modified() itself doesn’t affect type profiling.
Roland.
More information about the hotspot-compiler-dev
mailing list