Mercurial > hg > graal-jvmci-8
comparison test/compiler/regalloc/C1ObjectSpillInLogicOp.java @ 13443:ad45ebfba060
8028122: [TESTBUG] compiler/regalloc/C1ObjectSpillInLogicOp.java
Reviewed-by: kvn, twisti
author | iignatyev |
---|---|
date | Wed, 11 Dec 2013 01:04:34 +0400 |
parents | a905d33ce13a |
children | f967da7f0c3c |
comparison
equal
deleted
inserted
replaced
13442:b87211e33ebb | 13443:ad45ebfba060 |
---|---|
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 } |