New posts

This commit is contained in:
2026-11-06 21:43:48 +05:30
parent ecceaa8b32
commit f7b6c1efca
33 changed files with 1258 additions and 0 deletions
@@ -0,0 +1,14 @@
$ java -XX:StartFlightRecording:filename=probe.jfr --sun-misc-unsafe-memory-access=allow -cp build Probe (silent: no warnings)
got Unsafe instance
read back 42
allocate/put/get/free all succeeded
second use read 7
$ jfr print --events jdk.DeprecatedInvocation probe.jfr | grep -E 'method = |line:' | sort | uniq -c
1 Probe.main(String[]) line: 12
1 Probe.main(String[]) line: 13
1 Probe.main(String[]) line: 14
1 Probe.main(String[]) line: 15
1 method = sun.misc.Unsafe.allocateMemory(long)
1 method = sun.misc.Unsafe.freeMemory(long)
1 method = sun.misc.Unsafe.getLong(long)
1 method = sun.misc.Unsafe.putLong(long, long)