Summary
Unify jvm.h and os dependent versions of jvm_md.h between java.base and Hotspot versions, resulting in minor changes to the java.base versions.
Problem
Longstanding duplicate copies have diverged over the years, so there are minor differences resolving them. Mostly deletion of windows JVM functions that haven't been used since before JDK6, and some #defines. Also made visibility changes to jio_snprintf and similar functions for windows.
Solution
Changes visibility of jio_*printf functions to JNIEXPORT.
Added 1 to JVM_MAXPATHNAMELEN, removed JVM_O_READONLY defines - probably left over from when JVM did file io, added some signal #defines and added:
#define JVM_ONLOAD_SYMBOLS {"JVM_OnLoad"}
#define AGENT_ONLOAD_SYMBOLS {"Agent_OnLoad"}
#define AGENT_ONUNLOAD_SYMBOLS {"Agent_OnUnload"}
#define AGENT_ONATTACH_SYMBOLS {"Agent_OnAttach"}
Same changes as unix, but also removed these declarations. Could not find any use of these in any repositories back to JDK6.
JNIEXPORT struct protoent* JNICALL JVM_GetProtoByName(char* name);
JNIEXPORT struct hostent* JNICALL JVM_GetHostByAddr(const char* name, int len, int type);
JNIEXPORT struct hostent* JNICALL JVM_GetHostByName(char* name);
Removed.
Specification
http://cr.openjdk.java.net/~coleenp/8189610.01/webrev/index.html
- csr of
-
JDK-8189610 Reconcile jvm.h, all jvm_md.h, and jni_md.h between java.base and hotspot
- Resolved