Is the source code of native methods available?

后端 未结 2 1749
萌比男神i
萌比男神i 2020-12-15 09:38

At first I want to let you know that this question is not related with What is native implementation in Java. I got many useful information from that thread.

I want

2条回答
  •  独厮守ぢ
    2020-12-15 09:40

    Yes, see os::javaTimeMillis in /src/os/solaris/vm/os_solaris.cpp to see the Solaris implementation for instance.

    There are a few layers of wrappers to get there though, see JVM_CurrentTimeMillis in /src/share/vm/prims/jvm.cpp

提交回复
热议问题