Question about redirecting a compilation
Vladimir Kozlov
vladimir.kozlov at oracle.com
Wed Jan 2 10:35:21 PST 2013
May be I don't understand your question but C2 can compile top method
into intrinsic (it does not need to be called from compiled method).
Look on code for vmIntrinsics::_Reference_get in compile.cpp.
Vladimir
On 1/2/13 9:40 AM, Deneau, Tom wrote:
> As part of an experiment we'd like some Java code, say method Foo() to get redirected to some native code when either
>
> 1. the caller of Foo() gets compiled by C2
>
> 2. or Foo() itself gets compiled by C2.
>
> I know how to do Bullet 1 above by defining Foo as an intrinsic but what is the best way to do #2?
>
> -- Tom
>
>
>
More information about the sumatra-dev
mailing list