Substitution

Dean Long dean.long at oracle.com
Wed Mar 7 09:47:10 PST 2012


I thought hotspot had an "API hiding" mechanism that used bytecode 
rewriting of method calls, but I can't seem to find it in the code, just 
references to it on the wiki.

dl

On 3/7/2012 5:33 AM, Nils Eliasson wrote:
> Hi all,
>
> Are there any mechanism present for method substitution?
>
> I would like to do a runtime substitution of all calls to 
> Integer.valueOf to the Integer constructor. I am doing some 
> experiments on boxing elimination and are trying to get a number on 
> how much problem the Integer cache is causing.
>
> //N
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/attachments/20120307/b9994725/attachment.html 


More information about the hotspot-runtime-dev mailing list