Skip to content

Commit 4e19090

Browse files
committed
8268103: JNI functions incorrectly return a double after JDK-8265836
Backport-of: 2963c9e
1 parent 37f36d5 commit 4e19090

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/jdk.management/aix/native/libmanagement_ext/UnixOperatingSystem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ JNIEXPORT jlong JNICALL
5555
Java_com_sun_management_internal_OperatingSystemImpl_getHostTotalCpuTicks0
5656
(JNIEnv *env, jobject mbean)
5757
{
58-
return -1.0;
58+
return -1;
5959
}
6060

6161
JNIEXPORT jint JNICALL

src/jdk.management/macosx/native/libmanagement_ext/UnixOperatingSystem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ JNIEXPORT jlong JNICALL
171171
Java_com_sun_management_internal_OperatingSystemImpl_getHostTotalCpuTicks0
172172
(JNIEnv *env, jobject mbean)
173173
{
174-
return -1.0;
174+
return -1;
175175
}
176176

177177
JNIEXPORT jint JNICALL

0 commit comments

Comments
 (0)