RFR (M) #5 CR 8003985: Support @Contended annotation
Vitaly Davidovich
vitalyd at gmail.com
Fri Jan 11 05:14:31 PST 2013
What interaction with the prefetcher are you concerned about?
I still think it would be better to get line size from OS (or CPU) rather
than hardcoding a default - this seems orthogonal to the prefetcher issue
since the default you picked is probably going to be either the same size
or larger than what os/CPU would've reported.
Thanks
Sent from my phone
On Jan 11, 2013 3:05 AM, "Aleksey Shipilev" <aleksey.shipilev at oracle.com>
wrote:
> On 01/11/2013 04:29 AM, Vitaly Davidovich wrote:
> > Just a side comment - why not query the OS to get the cache line size
> > right from the get go instead of postponing it to a future change? Linux
> > and windows have APIs to get it fairly easily, and I'm guessing Solaris
> > and others do as well
>
> The issue is not about querying cache line size (that one is easy), but
> the interactions with hardware prefetchers which need to be researched on.
>
> -Aleksey.
>
>
More information about the hotspot-dev
mailing list