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

Tom Rodriguez tom.rodriguez at
Fri Nov 18 11:24:04 PST 2011

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.


> 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