diff options
author | Carl Shapiro <cshapiro@google.com> | 2011-01-23 15:24:34 -0800 |
---|---|---|
committer | Carl Shapiro <cshapiro@google.com> | 2011-01-23 15:24:34 -0800 |
commit | b387ce8ae1ffa0861be1ec94ba6c313203931a1b (patch) | |
tree | b29b6a8333eb629dc79918decdb02462c90261cf /vm/test | |
parent | 6ff6ec6b6361db707e4b0318075fc38dd319a49a (diff) | |
download | android_dalvik-b387ce8ae1ffa0861be1ec94ba6c313203931a1b.tar.gz android_dalvik-b387ce8ae1ffa0861be1ec94ba6c313203931a1b.tar.bz2 android_dalvik-b387ce8ae1ffa0861be1ec94ba6c313203931a1b.zip |
Remove references to android_atomic_swap.
Bug: 3381237
Change-Id: Iabca4be285082d804b0b206025bd4ca8e008ee42
Diffstat (limited to 'vm/test')
-rw-r--r-- | vm/test/AtomicTest.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/vm/test/AtomicTest.c b/vm/test/AtomicTest.c index 62333d0a2..52f29cc3b 100644 --- a/vm/test/AtomicTest.c +++ b/vm/test/AtomicTest.c @@ -61,7 +61,6 @@ static int andTest = 0; static int orTest = 0; static int casTest = 0; static int failingCasTest = 0; -static int swapTest = 0; static int64_t wideCasTest = 0x6600000077000000LL; /* @@ -342,19 +341,14 @@ bool dvmTestAtomicSpeed(void) */ andTest = 0xffd7fa96; orTest = 0x122221ff; - swapTest = 0x11111111; android_atomic_and(0xfffdaf96, &andTest); android_atomic_or(0xdeaaeb00, &orTest); - int oldSwap = android_atomic_swap(0x22222222, &swapTest); - int oldSwap2 = android_atomic_swap(0x33333333, &swapTest); if (android_atomic_release_cas(failingCasTest+1, failingCasTest-1, &failingCasTest) == 0) dvmFprintf(stdout, "failing test did not fail!\n"); dvmFprintf(stdout, "andTest = 0x%x\n", andTest); dvmFprintf(stdout, "orTest = 0x%x\n", orTest); - dvmFprintf(stdout, "swapTest = 0x%x -> 0x%x\n", oldSwap, oldSwap2); - dvmFprintf(stdout, "swapTest = 0x%x -> 0x%x\n", oldSwap2, swapTest); dvmFprintf(stdout, "failingCasTest = %d\n", failingCasTest); #ifdef TEST_BIONIC |