简体   繁体   English

JDK src.zip中的本机源

[英]Native sources in the JDK src.zip

I have openjdk-8-source installed on my system (Ubuntu 16.04). 我的系统上安装了openjdk-8-source(Ubuntu 16.04)。 I have unzipped the src.zip , however I cannot seem to find the sources for a lot of the native methods (specifically sun.nio.ch.FileDispatcherImpl#lock0 ). 我已经解压缩了src.zip ,但是我似乎找不到很多本机方法的源(特别是sun.nio.ch.FileDispatcherImpl#lock0 )。 Does anyone know where it is located in the src.zip ? 有人知道它在src.zip吗? I've looked in multiple places, and even tried looking for the source files by extension, but nothing turned up. 我曾在多个地方查看过,甚至尝试按扩展名查找源文件,但没有发现任何问题。

Did you check this path jdk/src/solaris/native/sun/nio/ch/FileDispatcherImpl.c 您是否检查过此路径jdk/src/solaris/native/sun/nio/ch/FileDispatcherImpl.c

https://github.com/keerath/openjdk-8-source/blob/master/jdk/src/solaris/native/sun/nio/ch/FileDispatcherImpl.c https://github.com/keerath/openjdk-8-source/blob/master/jdk/src/solaris/native/sun/nio/ch/FileDispatcherImpl.c

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM