hotspot/test/compiler/unsafe/SunMiscUnsafeAccessTestInt.java
changeset 45055 1c7bbc426b1e
parent 40059 c2304140ed64
equal deleted inserted replaced
45054:c09733aaf97f 45055:1c7bbc426b1e
     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.
   214             int x = UNSAFE.getInt(address);
   214             int x = UNSAFE.getInt(address);
   215             assertEquals(x, 0x01234567, "set int value");
   215             assertEquals(x, 0x01234567, "set int value");
   216         }
   216         }
   217     }
   217     }
   218 }
   218 }
   219