From 69d9ab004a70ffc5e8bd9b70938ad208eee76e2e Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Sun, 21 Sep 2014 17:31:45 -0600 Subject: [PATCH] implement JVM_isNaN This method was previously unimplemented and untested. However, the JMH benchmark suite requires it, so now it's time to implement it. --- src/classpath-openjdk.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/classpath-openjdk.cpp b/src/classpath-openjdk.cpp index d3b8af8d35..82f24173a1 100644 --- a/src/classpath-openjdk.cpp +++ b/src/classpath-openjdk.cpp @@ -3493,9 +3493,9 @@ extern "C" AVIAN_EXPORT jboolean JNICALL return version <= JNI_VERSION_1_6; } -extern "C" AVIAN_EXPORT jboolean JNICALL EXPORT(JVM_IsNaN)(jdouble) +extern "C" AVIAN_EXPORT jboolean JNICALL EXPORT(JVM_IsNaN)(jdouble v) { - abort(); + return isnan(v); } uint64_t jvmFillInStackTrace(Thread* t, uintptr_t* arguments)