Source for native sun.misc.Unsafe operation in java

I downloaded "openjdk-6-src-b23-05_jul_2011" to look at my own method implementations in sun.misc.Unsafe. e.g. compareAndSwapInt (...), but I can not find anything in the openjdk loaded sources. I want to get an idea of ​​what these methods look like (I was interested in the atomic material provided by jdk).

Can anyone point me to the right place (s)?

$ ls jdk/src/
linux  share  solaris  windows

$ ls hotspot/src/os/
linux  posix  solaris  windows

any help appreciated

Marcel

+5
source share
2 answers

, hotspot/src/share/vm/prims/unsafe.cpp. hotspot/src/share/vm/runtime/atomic.cpp, , hotspot/src/os_cpu/windows_x86/atomic_windows_x86.inline.hpp.

+11

All Articles