Where can I download the java native method source code? For example, I want to know the source code of System.arraycopy(), but I can’t find.
Where can I download the java native method source code? For example, I want
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can download OpenJdk source code here.
In the folder
jdk\src\shareyou can get source code.jdk\src\share\nativeis the natice method souce write in c and c++.jdk\src\linuxsource for linux.jdk\src\windowssource for windows.jdk\src\solarissouce for solaris.jd\src\sharecommon source.eg: System.arrayCopy();
int file
hotspot\src\share\vm\oops\objArrayKlass.cppline 168: