「openjdk7u6」- 源码目录结构

/

> tree -L 1 .
.
├── ASSEMBLY_EXCEPTION
├── build
├── build.log
├── corba
├── get_source.sh
├── hotspot
├── jaxp
├── jaxws
├── jdk
├── langtools
├── LICENSE
├── make
├── Makefile
├── nbproject
├── README
├── README-builds.html
├── test
└── THIRD_PARTY_README

10 directories, 11 files

/hotspot

> tree -L 1 hotspot

hotspot
├── agent # HotSpot Serviceability Agent (SA)实现;
├── ASSEMBLY_EXCEPTION
├── build # 编译生成的临时文件和JDK等;
├── LICENSE
├── make # build hotspot 的相关配置文件;
├── README
├── src # 源码;
├── test # 单元测试;
└── THIRD_PARTY_README

5 directories, 4 files

/hotspot/src

> tree -L 2 hotspot/src

hotspot/src
├── cpu # CPU 相关代码;
│   ├── sparc
│   ├── x86
│   └── zero
├── os # 操作系统相关代码;
│   ├── bsd
│   ├── linux
│   ├── posix
│   ├── solaris
│   └── windows
├── os_cpu # OS 与 CPU 组合的相关代码;
│   ├── bsd_x86
│   ├── bsd_zero
│   ├── linux_sparc
│   ├── linux_x86
│   ├── linux_zero
│   ├── solaris_sparc
│   ├── solaris_x86
│   └── windows_x86
└── share # 共同代码,与平台无关;

├── tools # 工具;

└── vm # hotspot 的实现,核心代码;

22 directories, 0 files

/hotspot/src/share

> tree -L 2 hotspot/src/share

hotspot/src/share
├── tools # 工具;
│   ├── hsdis # 反汇编插件;
│   ├── IdealGraphVisualizer # 将 Server编译器 的中间代码可视化;
│   ├── launcher #启动器“java”
│   ├── LogCompilation # 将日志格式化的可读格式;
│   └── ProjectCreator # 生成 Visual Studio 的project文件的工具;
└── vm # hotspot 的实现,核心代码;

├── adlc # 平台描述文件(扩展名为ad的文件,在cpu和os_cpu目录中出现过)的编译器;

├── asm # 汇编器接口;

├── c1 # Client 的编译器;

├── ci # 动态编译器的接口;

├── classfile # 类文件的处理;

├── code # 动态生成代码的管理;

├── compiler # 编译器接口;

├── gc_implementation # GC 实现;

├── gc_interface # GC 接口;

├── interpreter # 解释器;

├── libadt # 抽象数据结构;

├── memory # 内存管理;

├── oops # hotspot vm 的对象系统实现;

├── opto # Server 编译器;

├── precompiled

├── prims # hotspot vm 的对外接口;

├── runtime # 运行时支持库;

├── services # 用于支持 JMX 管理功能的接口;

├── shark # 基于 LLVM 的 JIT 编译器;

├── trace

├── utilities # 工具类;

└── Xusage.txt

28 directories, 1 file

/hotspot/src/share/vm/gc_implementation

> tree -L 1 hotspot/src/share/vm/gc_implementation

hotspot/src/share/vm/gc_implementation # GC 的实现;
├── concurrentMarkSweep # Concurrent Mark Swap GC 实现;
├── g1 # Garbage-First GC
├── parallelScavenge # ParallelScavenge GC
├── parNew # ParNew GC
└── shared # GC 公共实现;

5 directories, 0 files