Class | Description |
---|---|
JOLUnsafeTrampoline |
This class is needed to work around the protection that disallows polling objectFieldOffset
on Records and hidden classes:
https://bugs.openjdk.java.net/browse/JDK-8247444
https://hg.openjdk.java.net/jdk/jdk/file/ae002489df78/src/jdk.unsupported/share/classes/sun/misc/Unsafe.java#l640
It does so by injecting this class with elevated protection levels with sun.misc.Unsafe.defineAnonymousClass,
and accessing the jdk.internal.misc.Unsafe.objectFieldOffset that does not have
this protection.
|
Copyright © 2020. All rights reserved.