--- a/jdk/src/windows/native/java/lang/ProcessImpl_md.c Tue May 27 12:15:08 2014 -0700
+++ b/jdk/src/windows/native/java/lang/ProcessImpl_md.c Tue May 27 16:05:04 2014 -0400
@@ -248,6 +248,17 @@
}
}
+/*
+ * Class: java_lang_ProcessImpl
+ * Method: getProcessId0
+ * Signature: (J)I
+ */
+JNIEXPORT jint JNICALL Java_java_lang_ProcessImpl_getProcessId0
+ (JNIEnv *env, jclass clazz, jlong handle) {
+ DWORD pid = GetProcessId((HANDLE) jlong_to_ptr(handle));
+ return (jint)pid;
+}
+
/* Please, read about the MS inheritance problem
http://support.microsoft.com/kb/315939
and critical section/synchronized block solution. */