RFR: JDK-8157141 & JDK-8166454: Solaris getisax(2) and meminfo(2) cleanup

Alan Burlison Alan.Burlison at oracle.com
Tue Oct 4 14:14:08 UTC 2016


On 04/10/2016 09:15, David Holmes wrote:

> But it shouldn't be passing sizeof(avs), it should be passing
> (AV_HW2_IDX + 1)

You are right, it expects the number of elements rather than the more 
usual convention of passing buffer length in bytes. Sigh.

I've replaced it with:

uint_t avn = getisax(avs, sizeof(avs) / sizeof(avs[0]));

as that will auto-adapt if the declaration of avs is ever changed.

-- 
Alan Burlison
--


More information about the hotspot-runtime-dev mailing list