FW: is this a bug ?

Aleksey Shipilev shade at redhat.com
Wed Oct 16 09:22:07 UTC 2019


On 10/16/19 11:11 AM, Andrew Haley wrote:
> On 10/16/19 9:45 AM, Aleksey Shipilev wrote:
>> Can you be more specific, what the failure is?
> 
> Alignment, surely. You're doing put(long) on an unaligned buffer.

That would be weird.

The fixed test accesses DBB at offset 0, so the underlying storage (returned by
Unsafe.allocateMemory) has to be unaligned in that case. This fixes the testbug and gets the proper
behavior, apparently?

But then ByteBufferViewsAtomicityTests should crash the same way, no? And that would be odd, as JVM
crash is not the expected behavior in this case. It surely is understandable, but not expected.

-- 
Thanks,
-Aleksey



More information about the jcstress-dev mailing list