comparison test/compiler/regalloc/C1ObjectSpillInLogicOp.java @ 14214:7683a2f8d7d4

8028122: [TESTBUG] compiler/regalloc/C1ObjectSpillInLogicOp.java Reviewed-by: kvn, twisti
author iignatyev
date Wed, 11 Dec 2013 01:04:34 +0400
parents a905d33ce13a
children
comparison
equal deleted inserted replaced
14213:6c4c27c5cc9a 14214:7683a2f8d7d4
32 * There is a special code in the register allocator that forces long arguments in registers on x86. However T_OBJECT 32 * There is a special code in the register allocator that forces long arguments in registers on x86. However T_OBJECT
33 * can be spilled just fine, and in that case the xor emission will fail. 33 * can be spilled just fine, and in that case the xor emission will fail.
34 */ 34 */
35 35
36 import java.util.concurrent.atomic.*; 36 import java.util.concurrent.atomic.*;
37 class C1ObjectSpillInLogicOp { 37
38 static public void main(String[] args) { 38 public class C1ObjectSpillInLogicOp {
39 public static void main(String[] args) {
39 AtomicReferenceArray<Integer> x = new AtomicReferenceArray(128); 40 AtomicReferenceArray<Integer> x = new AtomicReferenceArray(128);
40 Integer y = new Integer(0); 41 Integer y = new Integer(0);
41 for (int i = 0; i < 50000; i++) { 42 for (int i = 0; i < 50000; i++) {
42 x.getAndSet(i % x.length(), y); 43 x.getAndSet(i % x.length(), y);
43 } 44 }