

Source for native sun.misc.Unsafe operations in java
source link: https://www.codesd.com/item/source-for-native-sun-misc-unsafe-operations-in-java.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Source for native sun.misc.Unsafe operations in java
i've downloaded "openjdk-6-src-b23-05_jul_2011" to have a look at the native implementations for the methods in sun.misc.Unsafe. e.g. compareAndSwapInt(...) but i am not able find anything in the downloaded sources of openjdk. i want to get an idea how these methods look like (i was interested in the atomic stuff the jdk provides).
could anybody point me to the right location(s)?
$ ls jdk/src/
linux share solaris windows
$ ls hotspot/src/os/
linux posix solaris windows
any help appreciated
marcel
Implementation of unsafe methods itself is not OS-specific, therefore it can be found in hotspot/src/share/vm/prims/unsafe.cpp
. It delegates to hotspot/src/share/vm/runtime/atomic.cpp
, which includes OS and CPU specific files, such as hotspot/src/os_cpu/windows_x86/atomic_windows_x86.inline.hpp
.
Related Articles
In Android, how to call sun.misc.Unsafe methods using Java reflection?
EXPECTED to sun.misc.Unsafe.park (native method)
Examples of forcing the release of native direct memory ByteBuffer assigned, using sun.misc.Unsafe?
** BUSTED ** How to speed up a search byte [] to be faster using sun.misc.Unsafe?
Using sun.misc.Unsafe to get the address of Java table elements?
Can you break a security manager with sun.misc.unsafe?
Tools for Debugging Bit-to-Bit Operations in Java
How set works for duplicate entry and delete operations in Java
Where can I find the source code for "native" methods in the Java library?
Applet error - java.lang.NoClassDefFoundError: sun / misc / ProxyGenerator
What is a free BLAS / LAPACK library (open source) for .net (C #)?
Is there a reminder for ng-bind-html-unsafe in AngularJS
Array Queue - recompiled with -xlint: unchecked / unsafe operations
Is the sun.misc package still available in java?
Recommend
-
25
知识点:F5隐写 kali中安装F5-steganography 工具 git clone https://github.com/matthewgao/F5-steganography 解密的时候输入: java Extract /图片的绝对路径 [-p 密码] [-e 输出文件]...
-
12
Nerd Sniped by BINFMT_MISC Sunday, March 4, 2018 · 3 min read This is a story about how I got nerd sniped by a blog post from Cloudflare Engi...
-
6
MISC 从标题中找信息 ...
-
7
1 加载symon (require-and-install 'symon) symon-monitors 监控那些系统状态的列表 symon-linux-memory-monitor memory usage (%) and swapped memory (MB) via /proc/meminfo
-
8
Files Permalink Latest commit message Commit time
-
5
robots 第五届强网杯全国网络安全挑战赛 – 线上赛 比赛时间: 2021-06-12 09:00 ~ 2021-06-13 21:00 比赛官网:
-
9
本文首发于安全客:https://www.anquanke.com/post/id/244824
-
4
Go 源码研究:unsafe 范式 unsafe 包该包会绕过所有的 Go 类型安全检查,几乎是 Cgo 的灵魂,也是支撑 Go 运行时、reflect、系统调用等机制的核心。 任意类型 ArbitraryType
-
8
最近在 Kotlin 项目中发现,定义的 data class(成员变量都声明不可空)经过在 Gson 解析后,可以得到成员...
-
7
Java proposal would scrap sun.misc.Unsafe memory access Memory access methods in the 20-year-old class for performing low-level operations would be marke...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK