mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8198249: Remove deprecated Runtime::runFinalizersOnExit and System::runFinalizersOnExit
Reviewed-by: dholmes, alanb, smarks
This commit is contained in:
parent
cfe9ad4608
commit
4bb064c62d
20 changed files with 114 additions and 500 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1999, 2003, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2018, 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
|
||||
|
@ -35,17 +35,3 @@ Java_java_lang_Shutdown_halt0(JNIEnv *env, jclass ignored, jint code)
|
|||
{
|
||||
JVM_Halt(code);
|
||||
}
|
||||
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_java_lang_Shutdown_runAllFinalizers(JNIEnv *env, jclass ignored)
|
||||
{
|
||||
jclass cl;
|
||||
jmethodID mid;
|
||||
|
||||
if ((cl = (*env)->FindClass(env, "java/lang/ref/Finalizer"))
|
||||
&& (mid = (*env)->GetStaticMethodID(env, cl,
|
||||
"runAllFinalizers", "()V"))) {
|
||||
(*env)->CallStaticVoidMethod(env, cl, mid);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue