Question about Unsafe.prefetch ... () ?

Roman Kennke rkennke at redhat.com
Thu Aug 14 14:32:05 UTC 2014


Hello,

I noticed that in Hotspot there are intrinsics defined for
Unsafe.prefetchRead(), Unsafe.prefetchWrite(),
Unsafe.prefetchReadStatic() and Unsafe.prefetchWriteStatic(), but none
of them are defined in JDK's Unsafe.java nor is it called anywhere. Is
this code used for anything? Why is it there?

Thanks and best regards,
Roman




More information about the hotspot-dev mailing list