hotspot/test/compiler/unsafe/SunMiscUnsafeAccessTestChar.java
changeset 45514 0fc9cc73ce45
parent 40059 c2304140ed64
equal deleted inserted replaced
45513:5431282d8ce1 45514:0fc9cc73ce45
     1 /*
     1 /*
     2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   173             char x = UNSAFE.getChar(address);
   173             char x = UNSAFE.getChar(address);
   174             assertEquals(x, '\u0123', "set char value");
   174             assertEquals(x, '\u0123', "set char value");
   175         }
   175         }
   176     }
   176     }
   177 }
   177 }
   178