1.1 --- a/src/share/vm/oops/methodDataOop.cpp Mon Apr 20 14:48:03 2009 -0700 1.2 +++ b/src/share/vm/oops/methodDataOop.cpp Tue Apr 21 23:21:04 2009 -0700 1.3 @@ -442,6 +442,8 @@ 1.4 case Bytecodes::_invokevirtual: 1.5 case Bytecodes::_invokeinterface: 1.6 return VirtualCallData::static_cell_count(); 1.7 + case Bytecodes::_invokedynamic: 1.8 + return CounterData::static_cell_count(); 1.9 case Bytecodes::_ret: 1.10 return RetData::static_cell_count(); 1.11 case Bytecodes::_ifeq: 1.12 @@ -570,6 +572,11 @@ 1.13 cell_count = VirtualCallData::static_cell_count(); 1.14 tag = DataLayout::virtual_call_data_tag; 1.15 break; 1.16 + case Bytecodes::_invokedynamic: 1.17 + // %%% should make a type profile for any invokedynamic that takes a ref argument 1.18 + cell_count = CounterData::static_cell_count(); 1.19 + tag = DataLayout::counter_data_tag; 1.20 + break; 1.21 case Bytecodes::_ret: 1.22 cell_count = RetData::static_cell_count(); 1.23 tag = DataLayout::ret_data_tag;