26 lines
1.1 KiB
Plaintext
26 lines
1.1 KiB
Plaintext
$ java -cp build Probe (openjdk version "21.0.12.1" 2026-08-18, class file compiled by JDK 21)
|
|
got Unsafe instance
|
|
read back 42
|
|
allocate/put/get/free all succeeded
|
|
second use read 7
|
|
|
|
$ java --sun-misc-unsafe-memory-access=deny -cp build Probe (openjdk version "21.0.12.1" 2026-08-18)
|
|
Unrecognized option: --sun-misc-unsafe-memory-access=deny
|
|
Error: Could not create the Java Virtual Machine.
|
|
Error: A fatal exception has occurred. Program will exit.
|
|
|
|
$ java -cp build Probe (openjdk version "26.0.2.1" 2026-08-18)
|
|
got Unsafe instance
|
|
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
|
WARNING: sun.misc.Unsafe::allocateMemory has been called by Probe (file:<build>/c25/)
|
|
WARNING: Please consider reporting this to the maintainers of class Probe
|
|
...
|
|
|
|
$ java -cp build Probe (openjdk version "27.0.1.0.2" 2026-10-21)
|
|
got Unsafe instance
|
|
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
|
|
WARNING: sun.misc.Unsafe::allocateMemory has been called by Probe (file:<build>/c25/)
|
|
WARNING: Please consider reporting this to the maintainers of class Probe
|
|
...
|
|
|