mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8205417: Obsolete UnlinkSymbolsALot debugging option
Obsolete and remove support for UnlinkSymbolsALot Reviewed-by: hseigel, dholmes
This commit is contained in:
parent
5ff2b5fe98
commit
61d4faee90
6 changed files with 2 additions and 29 deletions
|
@ -539,7 +539,6 @@ static SpecialFlag const special_jvm_flags[] = {
|
||||||
{ "PrintSafepointStatisticsTimeout", JDK_Version::jdk(11), JDK_Version::jdk(12), JDK_Version::jdk(13) },
|
{ "PrintSafepointStatisticsTimeout", JDK_Version::jdk(11), JDK_Version::jdk(12), JDK_Version::jdk(13) },
|
||||||
{ "PrintSafepointStatisticsCount",JDK_Version::jdk(11), JDK_Version::jdk(12), JDK_Version::jdk(13) },
|
{ "PrintSafepointStatisticsCount",JDK_Version::jdk(11), JDK_Version::jdk(12), JDK_Version::jdk(13) },
|
||||||
{ "AggressiveOpts", JDK_Version::jdk(11), JDK_Version::jdk(12), JDK_Version::jdk(13) },
|
{ "AggressiveOpts", JDK_Version::jdk(11), JDK_Version::jdk(12), JDK_Version::jdk(13) },
|
||||||
{ "UnlinkSymbolsALot", JDK_Version::jdk(11), JDK_Version::jdk(12), JDK_Version::jdk(13) },
|
|
||||||
|
|
||||||
// --- Deprecated alias flags (see also aliased_jvm_flags) - sorted by obsolete_in then expired_in:
|
// --- Deprecated alias flags (see also aliased_jvm_flags) - sorted by obsolete_in then expired_in:
|
||||||
{ "DefaultMaxRAMFraction", JDK_Version::jdk(8), JDK_Version::undefined(), JDK_Version::undefined() },
|
{ "DefaultMaxRAMFraction", JDK_Version::jdk(8), JDK_Version::undefined(), JDK_Version::undefined() },
|
||||||
|
@ -572,6 +571,7 @@ static SpecialFlag const special_jvm_flags[] = {
|
||||||
{ "NativeMonitorTimeout", JDK_Version::undefined(), JDK_Version::jdk(11), JDK_Version::jdk(12) },
|
{ "NativeMonitorTimeout", JDK_Version::undefined(), JDK_Version::jdk(11), JDK_Version::jdk(12) },
|
||||||
{ "NativeMonitorSpinLimit", JDK_Version::undefined(), JDK_Version::jdk(11), JDK_Version::jdk(12) },
|
{ "NativeMonitorSpinLimit", JDK_Version::undefined(), JDK_Version::jdk(11), JDK_Version::jdk(12) },
|
||||||
{ "NativeMonitorFlags", JDK_Version::undefined(), JDK_Version::jdk(11), JDK_Version::jdk(12) },
|
{ "NativeMonitorFlags", JDK_Version::undefined(), JDK_Version::jdk(11), JDK_Version::jdk(12) },
|
||||||
|
{ "UnlinkSymbolsALot", JDK_Version::jdk(11), JDK_Version::jdk(12), JDK_Version::jdk(13) },
|
||||||
{ "AllowNonVirtualCalls", JDK_Version::jdk(11), JDK_Version::jdk(12), JDK_Version::jdk(13) },
|
{ "AllowNonVirtualCalls", JDK_Version::jdk(11), JDK_Version::jdk(12), JDK_Version::jdk(13) },
|
||||||
|
|
||||||
#ifdef TEST_VERIFY_SPECIAL_JVM_FLAGS
|
#ifdef TEST_VERIFY_SPECIAL_JVM_FLAGS
|
||||||
|
|
|
@ -486,9 +486,6 @@ define_pd_global(uint64_t,MaxRAM, 1ULL*G);
|
||||||
notproduct(bool, ZombieALot, false, \
|
notproduct(bool, ZombieALot, false, \
|
||||||
"Create zombies (non-entrant) at exit from the runtime system") \
|
"Create zombies (non-entrant) at exit from the runtime system") \
|
||||||
\
|
\
|
||||||
product(bool, UnlinkSymbolsALot, false, \
|
|
||||||
"Unlink unreferenced symbols from the symbol table at safepoints")\
|
|
||||||
\
|
|
||||||
notproduct(bool, WalkStackALot, false, \
|
notproduct(bool, WalkStackALot, false, \
|
||||||
"Trace stack (no print) at every exit from the runtime system") \
|
"Trace stack (no print) at every exit from the runtime system") \
|
||||||
\
|
\
|
||||||
|
|
|
@ -66,9 +66,6 @@ VMEntryWrapper::~VMEntryWrapper() {
|
||||||
if (ZombieALot) {
|
if (ZombieALot) {
|
||||||
InterfaceSupport::zombieAll();
|
InterfaceSupport::zombieAll();
|
||||||
}
|
}
|
||||||
if (UnlinkSymbolsALot) {
|
|
||||||
InterfaceSupport::unlinkSymbols();
|
|
||||||
}
|
|
||||||
// do verification AFTER potential deoptimization
|
// do verification AFTER potential deoptimization
|
||||||
if (VerifyStack) {
|
if (VerifyStack) {
|
||||||
InterfaceSupport::verify_stack();
|
InterfaceSupport::verify_stack();
|
||||||
|
@ -208,11 +205,6 @@ void InterfaceSupport::zombieAll() {
|
||||||
zombieAllCounter++;
|
zombieAllCounter++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void InterfaceSupport::unlinkSymbols() {
|
|
||||||
VM_UnlinkSymbols op;
|
|
||||||
VMThread::execute(&op);
|
|
||||||
}
|
|
||||||
|
|
||||||
void InterfaceSupport::deoptimizeAll() {
|
void InterfaceSupport::deoptimizeAll() {
|
||||||
// This method is called by all threads when a thread make
|
// This method is called by all threads when a thread make
|
||||||
// transition to VM state (for example, runtime calls).
|
// transition to VM state (for example, runtime calls).
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
|
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* This code is free software; you can redistribute it and/or modify it
|
||||||
|
@ -60,7 +60,6 @@ class InterfaceSupport: AllStatic {
|
||||||
static void walk_stack();
|
static void walk_stack();
|
||||||
|
|
||||||
static void zombieAll();
|
static void zombieAll();
|
||||||
static void unlinkSymbols();
|
|
||||||
static void deoptimizeAll();
|
static void deoptimizeAll();
|
||||||
static void stress_derived_pointers();
|
static void stress_derived_pointers();
|
||||||
static void verify_stack();
|
static void verify_stack();
|
||||||
|
|
|
@ -192,12 +192,6 @@ void VM_ZombieAll::doit() {
|
||||||
|
|
||||||
#endif // !PRODUCT
|
#endif // !PRODUCT
|
||||||
|
|
||||||
void VM_UnlinkSymbols::doit() {
|
|
||||||
JavaThread *thread = (JavaThread *)calling_thread();
|
|
||||||
assert(thread->is_Java_thread(), "must be a Java thread");
|
|
||||||
SymbolTable::unlink();
|
|
||||||
}
|
|
||||||
|
|
||||||
void VM_Verify::doit() {
|
void VM_Verify::doit() {
|
||||||
Universe::heap()->prepare_for_verify();
|
Universe::heap()->prepare_for_verify();
|
||||||
Universe::verify();
|
Universe::verify();
|
||||||
|
|
|
@ -52,7 +52,6 @@
|
||||||
template(DeoptimizeFrame) \
|
template(DeoptimizeFrame) \
|
||||||
template(DeoptimizeAll) \
|
template(DeoptimizeAll) \
|
||||||
template(ZombieAll) \
|
template(ZombieAll) \
|
||||||
template(UnlinkSymbols) \
|
|
||||||
template(Verify) \
|
template(Verify) \
|
||||||
template(PrintJNI) \
|
template(PrintJNI) \
|
||||||
template(HeapDumper) \
|
template(HeapDumper) \
|
||||||
|
@ -353,14 +352,6 @@ class VM_ZombieAll: public VM_Operation {
|
||||||
};
|
};
|
||||||
#endif // PRODUCT
|
#endif // PRODUCT
|
||||||
|
|
||||||
class VM_UnlinkSymbols: public VM_Operation {
|
|
||||||
public:
|
|
||||||
VM_UnlinkSymbols() {}
|
|
||||||
VMOp_Type type() const { return VMOp_UnlinkSymbols; }
|
|
||||||
void doit();
|
|
||||||
bool allow_nested_vm_operations() const { return true; }
|
|
||||||
};
|
|
||||||
|
|
||||||
class VM_Verify: public VM_Operation {
|
class VM_Verify: public VM_Operation {
|
||||||
public:
|
public:
|
||||||
VMOp_Type type() const { return VMOp_Verify; }
|
VMOp_Type type() const { return VMOp_Verify; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue