Unsafe.{get,put}-X-Unaligned performance
Paul Sandoz
paul.sandoz at oracle.com
Thu Mar 12 09:54:38 UTC 2015
On Mar 11, 2015, at 7:23 PM, Andrew Haley <aph at redhat.com> wrote:
> On 03/11/2015 06:00 PM, Paul Sandoz wrote:
>> We need to include some unit tests before we can push.
>
> I have a test which I've been using. It could be converted into
> a unit test.
>
Ok. There are Unsafe tests in:
hotspot/test/runtime/Unsafe
So we could place it there.
In this particular case i think we would need to run without and with the flag UseUnalignedAccesses set to false. IIUC that just means two @run entries defined for jtreg to crunch on e.g.:
/*
* @test
* @bug XXXXXXX
* @run TestUnalignedAccess
* @run main/othervm -XX:-UseUnalignedAccesses TestUnalignedAccess
*/
Paul.
More information about the core-libs-dev
mailing list