Mercurial > hg > truffle
comparison test/compiler/regalloc/C1ObjectSpillInLogicOp.java @ 14245:768421ed8211
Merge
author | hseigel |
---|---|
date | Mon, 13 Jan 2014 18:30:57 -0500 |
parents | 7683a2f8d7d4 |
children |
comparison
equal
deleted
inserted
replaced
14244:d85f79f0c476 | 14245:768421ed8211 |
---|---|
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 } |