diff -r 6b03cc6f758a -r cc993a4ab581 hotspot/test/compiler/unsafe/SunMiscUnsafeAccessTestChar.java --- a/hotspot/test/compiler/unsafe/SunMiscUnsafeAccessTestChar.java Wed Jun 15 07:58:56 2016 +0200 +++ b/hotspot/test/compiler/unsafe/SunMiscUnsafeAccessTestChar.java Wed Jun 15 11:21:36 2016 +0300 @@ -145,16 +145,16 @@ static void testAccess(Object base, long offset) { // Plain { - UNSAFE.putChar(base, offset, 'a'); + UNSAFE.putChar(base, offset, '\u0123'); char x = UNSAFE.getChar(base, offset); - assertEquals(x, 'a', "set char value"); + assertEquals(x, '\u0123', "set char value"); } // Volatile { - UNSAFE.putCharVolatile(base, offset, 'b'); + UNSAFE.putCharVolatile(base, offset, '\u4567'); char x = UNSAFE.getCharVolatile(base, offset); - assertEquals(x, 'b', "putVolatile char value"); + assertEquals(x, '\u4567', "putVolatile char value"); } @@ -166,9 +166,9 @@ static void testAccess(long address) { // Plain { - UNSAFE.putChar(address, 'a'); + UNSAFE.putChar(address, '\u0123'); char x = UNSAFE.getChar(address); - assertEquals(x, 'a', "set char value"); + assertEquals(x, '\u0123', "set char value"); } } }