From c021329d0d372f810c2b6513d4152bece08635b9 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Mon, 24 Feb 2014 14:16:40 -0700 Subject: [PATCH] add Avian_java_util_concurrent_atomic_AtomicLong_VMSupportsCS8 Android's class library uses this to find out whether the VM supports compareAndSwapLong natively. Avian does on all platforms, so we just return true. --- src/classpath-android.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/classpath-android.cpp b/src/classpath-android.cpp index 59d7bf3456..21e4cb6a6b 100644 --- a/src/classpath-android.cpp +++ b/src/classpath-android.cpp @@ -2300,6 +2300,13 @@ Avian_java_lang_System_mapLibraryName t->m->system->librarySuffix())); } +extern "C" AVIAN_EXPORT int64_t JNICALL +Avian_java_util_concurrent_atomic_AtomicLong_VMSupportsCS8 +(Thread*, object, uintptr_t*) +{ + return true; +} + #ifdef PLATFORM_WINDOWS # include