8212000: Verify exported symbols in java.base (libnet, libnio/ch)

Reviewed-by: alanb, chegar
This commit is contained in:
Pavel Rappo 2018-10-10 14:13:32 +01:00
parent df92fc0954
commit a9efcea778
5 changed files with 5 additions and 10 deletions

View File

@ -122,8 +122,6 @@ JNIEXPORT void JNICALL Java_java_net_NetworkInterface_init(JNIEnv *env, jclass c
JNIEXPORT void JNICALL NET_ThrowNew(JNIEnv *env, int errorNum, char *msg);
int NET_GetError();
void NET_ThrowCurrent(JNIEnv *env, char *msg);
jfieldID NET_GetFileDescriptorID(JNIEnv *env);
@ -202,7 +200,6 @@ NET_EnableFastTcpLoopback(int fd);
unsigned short in_cksum(unsigned short *addr, int len);
JNIEXPORT jint JNICALL
NET_Wait(JNIEnv *env, jint fd, jint flags, jint timeout);
jint NET_Wait(JNIEnv *env, jint fd, jint flags, jint timeout);
#endif /* NET_UTILS_H */

View File

@ -1546,7 +1546,7 @@ NET_Bind(int fd, SOCKETADDRESS *sa, int len)
* It returns the time left from the timeout (possibly 0), or -1 if it expired.
*/
JNIEXPORT jint JNICALL
jint
NET_Wait(JNIEnv *env, jint fd, jint flags, jint timeout)
{
jlong prevNanoTime = JVM_NanoTime(env, 0);

View File

@ -747,8 +747,7 @@ Java_sun_nio_ch_Net_pollconnValue(JNIEnv *env, jclass this)
/* Declared in nio_util.h */
JNIEXPORT jint JNICALL
handleSocketError(JNIEnv *env, jint errorValue)
jint handleSocketError(JNIEnv *env, jint errorValue)
{
char *xn;
switch (errorValue) {

View File

@ -62,5 +62,4 @@ jlong convertLongReturnVal(JNIEnv *env, jlong n, jboolean reading);
/* Defined in Net.c */
JNIEXPORT jint JNICALL
handleSocketError(JNIEnv *env, jint errorValue);
jint handleSocketError(JNIEnv *env, jint errorValue);

View File

@ -903,7 +903,7 @@ NET_IsEqual(jbyte* caddr1, jbyte* caddr2) {
* It returns the time left from the timeout, or -1 if it expired.
*/
JNIEXPORT jint JNICALL
jint
NET_Wait(JNIEnv *env, jint fd, jint flags, jint timeout)
{
jlong prevTime = JVM_CurrentTimeMillis(env, 0);