java Programming Glossary: sun.misc.unsafe
Create a mutable java.lang.String http://stackoverflow.com/questions/11146255/create-a-mutable-java-lang-string a mutable one without using hacks namely java.lang.refect sun.misc.Unsafe Classes in bootstrap classloader JNI or JNA as it requires JNI..
How to limit setAccessible to only “legitimate” uses? http://stackoverflow.com/questions/2481862/how-to-limit-setaccessible-to-only-legitimate-uses integrity checks. There's a non API core Java class called sun.misc.Unsafe that can do pretty much anything at all it wants to including..
What is the security risk of object reflection? http://stackoverflow.com/questions/3002904/what-is-the-security-risk-of-object-reflection are other mechanism that put security in jeopardy notably sun.misc.Unsafe which gives direct access to the memory pointers are back. 2..
Interesting uses of sun.misc.Unsafe http://stackoverflow.com/questions/5574241/interesting-uses-of-sun-misc-unsafe uses of sun.misc.Unsafe Of course the Unsafe class is undocumented but I am interested.. ie CAS Compare And Swap used in Lock Free Hash Tables eg sun.misc.Unsafe.compareAndSwapInt it can make real JNI calls into native code.. CAS here http en.wikipedia.org wiki Compare and swap The sun.misc.Unsafe functionality of the host VM can be used to allocate uninitialized..
How can I get the memory location of a object in java? http://stackoverflow.com/questions/7060215/how-can-i-get-the-memory-location-of-a-object-in-java help package test import java.lang.reflect.Field import sun.misc.Unsafe public class Addresser private static Unsafe unsafe static ..
Is there a way to get a reference address? http://stackoverflow.com/questions/8820164/is-there-a-way-to-get-a-reference-address assumes you have 32 bit index in a 64 bit JVM. import sun.misc.Unsafe import java.lang.reflect.Field import java.util.Arrays import..
|