Reason for non-const of instanceKlass::method_with_idnum(int idnum)

Sebastian Sickelmann sebastian.sickelmann at gmx.de
Sat Nov 19 04:10:03 PST 2011


Am 18.11.2011 20:24, schrieb Tom Rodriguez:
> On Nov 17, 2011, at 2:26 AM, Sebastian Sickelmann wrote:
>
>> Hello,
>>
>> is there a reason why the method instanceKlass::method_with_idnum(int idnum) does not have a const qualifier?
> We're not particularly religious about the use of const so no one probably bothered.
>
> tom
Thanks for the reply.

Ok, than i can change this for my prototype, if i have to change it, 
without bringing to much hurt to integration-time.
>> The methods
>>     - instanceKlass::methods()
>>     - methodOop::idnum()
>>     - objectArrayOop::obj_at(int)
>>
>> that are used inside of method_with_idnum are all const and i don't see a change to manipulate the internal state of instanceKlass unintantional through making method_with_idnum constant.
>>
>> Kind regards
>> Sebastian



More information about the hotspot-dev mailing list