[11] RFR(S) 8206265: assert in TestOptionsWithRanges on aarch64

Boris Ulasevich boris.ulasevich at bell-sw.com
Thu Jul 5 17:09:35 UTC 2018

Hi all,

please review bugfix for openjdk-11 and 12:


Currently, TestOptionsWithRanges which tries different combinations of 
maximum option values fails with assert if SoftwarePrefetchHintDistance 
option limit is 32K (prfm gets imm12<<3) when using its maximum value in 
cmp instruction (which fits only 12-bit immediate).

A new instruction cmp(rscratch, Rn, imm) alias is introduced to use it 
when immediate value can not fit in 12 bit. I believe it's cleaner than 
using subs.

Alternatively, if someone believes this looks risky for 11 I can propose 
to just limit SoftwarePrefetchHintDistance. It seems unreasonable to 
prefetch more than a few cache lines ahead anyway.


More information about the hotspot-dev mailing list