-
Notifications
You must be signed in to change notification settings - Fork 721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Fast_java_lang_System_arraycopy #17140
Remove Fast_java_lang_System_arraycopy #17140
Conversation
@tajila Do you know if there's a reason FastJNI_java_lang_System.cpp exists? It doesn't even get compiled when I compile j9 normally, since it disables itself right at the start with |
are currentmillis and nanotime still used? |
@gacholio may know why |
The #undef was added by GAC in 2013 by 39436 is a Discussion item in RTC. |
Good question, originally I thought they weren't used because there's different implementations in BytecodeInterpreter.hpp, but I just realized that the other FastJNI_* files also have their functions implemented elsewhere. When are the fast versions used? |
I do not recall what the issue with arraycopy was/is. It's possible these natives are not necessary as the JIT has custom inlined verisons of them, but we would need to prove that with performance measurements across the platforms. I think this item should be closed with no action taken. |
The main reason I brought this up was because I'm editing |
The fast version has been disabled going on 10 years now, so I'm fine with removing it - it would be simple enough to reimplement it if a need arises later. |
Okay, I'll update this PR to just remove |
Fast_java_lang_System_arraycopy is dead code, as it is no longer called anywhere Signed-off-by: Ehren Julien-Neitzert <ehren.julien-neitzert@ibm.com>
469f137
to
ffa236f
Compare
Okay, only |
Please update the PR description. |
jenkins test sanity zlinux jdk19 |
Fast_java_lang_System_arraycopy is dead code,
as it is no longer called anywhere