Question about Unsafe.prefetch ... () ?

Christian Thalinger christian.thalinger at oracle.com
Thu Aug 14 15:43:54 UTC 2014


Maybe Alan knows more about it…

On Aug 14, 2014, at 7:52 AM, Roman Kennke <rkennke at redhat.com> wrote:

> Am Donnerstag, den 14.08.2014 um 07:46 -0700 schrieb Christian
> Thalinger:
>> [#JDK-6807143] Unsafe.java changes corresponding to 6353211 - Java Bug
>> System
>> 
> 
> Interesting! This bug is created in 2009 (if the year entry is correct).
> Does it make sense to either finish it off (for this it would be good to
> know what have been the plans...), or remove that code?
> 
> Roman
> 
>> On Aug 14, 2014, at 7:32 AM, Roman Kennke <rkennke at redhat.com> wrote:
>> 
>>> 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