8249940: Remove unnecessary includes of jni_util.h in native tests

Reviewed-by: iignatyev, mchung
This commit is contained in:
David Holmes 2020-07-23 00:47:02 -04:00
parent 401d3ea9bc
commit 1b1c1cd7b9
6 changed files with 3 additions and 10 deletions
test
hotspot/jtreg/runtime/jni
FindClass
registerNativesWarning
terminatedThread
jdk
java/lang
ClassLoader/nativeLibrary
ProcessBuilder/checkHandles
jdk/internal/loader/NativeLibraries

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -25,7 +25,6 @@
#include <stdlib.h>
#include "jni.h"
#include "jni_util.h"
JNIEXPORT jclass JNICALL
Java_java_lang_BootNativeLibrary_findClass

@ -24,7 +24,6 @@
#include <stdio.h>
#include "jni.h"
#include "jni_util.h"
/*
* We will replace:

@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -28,8 +28,6 @@
#include <string.h>
#include "jni.h"
#include "jni_util.h"
JavaVM* jvm;
jobject nativeThread;

@ -1,5 +1,5 @@
/*
* Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -25,7 +25,6 @@
#include <stdlib.h>
#include "jni.h"
#include "jni_util.h"
static jint count = 0;
static jclass test_class;

@ -27,7 +27,6 @@
#ifdef _WIN32
#include "jni.h"
#include "jni_util.h"
#include <windows.h>
JNIEXPORT jlong JNICALL Java_CheckHandles_getProcessHandleCount(JNIEnv *env)

@ -25,7 +25,6 @@
#include <stdlib.h>
#include "jni.h"
#include "jni_util.h"
static jclass test_class;
static jint current_jni_version = JNI_VERSION_10;