I would like to know if it is possible to get the Native Code implementation of JDK methods, such as:
public final class System {
/* First thing---register the natives */
private static native void registerNatives();
...
....}
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.
Search for OpenJDK source code (it is open source), or any other open-source Java implementation and you can find the implementations.
The System class source for example (grabbing the complete OpenJDK source might be more convenient than this ‘web view’).
Note:
registerNatives()is using native (C/C++ ?) code, so you’d need to track that down (from the complete source code for example). Or any other implementation you are interested in.