[aarch64-port-dev ] System.arraycopy() intrinsics
Andrew Dinn
adinn at redhat.com
Tue Sep 24 01:22:30 PDT 2013
On 23/09/13 20:36, Andrew Haley wrote:
>>> The arraycopy function should always be ARM code. I'll grant
>>> you that it should not be an ExternalAddress -- that's just a
>>> mistake.
Ah, I think I should have read what you wrote here more carefully.
> I don't get it. If you're calling a stub, it's either implemented as
> generated ARM code, in which case you can call it via BL, or it's
> native code, in which case you can't because BL won't reach. Doing
> the code blob lookup doesn't hurt at all.
Ok, I see what you are saying now. The codeblob lookup allows you to use
a relative branch, avoiding having to load an absolute address. That
more than justifies any cost associated with doing the lookup. I will
drop my proposed changes and do the same as you in the C2 back end.
regards,
Andrew Dinn
-----------
More information about the aarch64-port-dev
mailing list