8215034: Remove old HOTSWAP conditionals
Reviewed-by: dcubed, jiangli, sspitsyn
This commit is contained in:
parent
3d0faa649c
commit
0be6d52f4d
@ -1200,7 +1200,6 @@ bool CodeCache::is_far_target(address target) {
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef HOTSWAP
|
||||
int CodeCache::mark_for_evol_deoptimization(InstanceKlass* dependee) {
|
||||
MutexLockerEx mu(CodeCache_lock, Mutex::_no_safepoint_check_flag);
|
||||
int number_of_marked_CodeBlobs = 0;
|
||||
@ -1234,8 +1233,6 @@ int CodeCache::mark_for_evol_deoptimization(InstanceKlass* dependee) {
|
||||
|
||||
return number_of_marked_CodeBlobs;
|
||||
}
|
||||
#endif // HOTSWAP
|
||||
|
||||
|
||||
// Deoptimize all methods
|
||||
void CodeCache::mark_all_nmethods_for_deoptimization() {
|
||||
@ -1297,8 +1294,8 @@ void CodeCache::flush_dependents_on(InstanceKlass* dependee) {
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef HOTSWAP
|
||||
// Flushes compiled methods dependent on dependee in the evolutionary sense
|
||||
// Flushes compiled methods dependent on dependee when the dependee is redefined
|
||||
// via RedefineClasses
|
||||
void CodeCache::flush_evol_dependents_on(InstanceKlass* ev_k) {
|
||||
// --- Compile_lock is not held. However we are at a safepoint.
|
||||
assert_locked_or_safepoint(Compile_lock);
|
||||
@ -1326,8 +1323,6 @@ void CodeCache::flush_evol_dependents_on(InstanceKlass* ev_k) {
|
||||
make_marked_nmethods_not_entrant();
|
||||
}
|
||||
}
|
||||
#endif // HOTSWAP
|
||||
|
||||
|
||||
// Flushes compiled methods dependent on dependee
|
||||
void CodeCache::flush_dependents_on_method(const methodHandle& m_h) {
|
||||
|
@ -286,9 +286,7 @@ class CodeCache : AllStatic {
|
||||
// Deoptimization
|
||||
private:
|
||||
static int mark_for_deoptimization(KlassDepChange& changes);
|
||||
#ifdef HOTSWAP
|
||||
static int mark_for_evol_deoptimization(InstanceKlass* dependee);
|
||||
#endif // HOTSWAP
|
||||
|
||||
public:
|
||||
static void mark_all_nmethods_for_deoptimization();
|
||||
@ -297,10 +295,8 @@ class CodeCache : AllStatic {
|
||||
|
||||
// Flushing and deoptimization
|
||||
static void flush_dependents_on(InstanceKlass* dependee);
|
||||
#ifdef HOTSWAP
|
||||
// Flushing and deoptimization in case of evolution
|
||||
static void flush_evol_dependents_on(InstanceKlass* dependee);
|
||||
#endif // HOTSWAP
|
||||
// Support for fullspeed debugging
|
||||
static void flush_dependents_on_method(const methodHandle& dependee);
|
||||
|
||||
|
@ -111,9 +111,7 @@ class TemplateInterpreter: public AbstractInterpreter {
|
||||
static address _throw_StackOverflowError_entry;
|
||||
|
||||
static address _remove_activation_entry; // continuation address if an exception is not handled by current frame
|
||||
#ifdef HOTSWAP
|
||||
static address _remove_activation_preserving_args_entry; // continuation address when current frame is being popped
|
||||
#endif // HOTSWAP
|
||||
|
||||
#ifndef PRODUCT
|
||||
static EntryPoint _trace_code;
|
||||
@ -146,9 +144,7 @@ class TemplateInterpreter: public AbstractInterpreter {
|
||||
public:
|
||||
|
||||
static address remove_activation_early_entry(TosState state) { return _earlyret_entry.entry(state); }
|
||||
#ifdef HOTSWAP
|
||||
static address remove_activation_preserving_args_entry() { return _remove_activation_preserving_args_entry; }
|
||||
#endif // HOTSWAP
|
||||
static address remove_activation_preserving_args_entry() { return _remove_activation_preserving_args_entry; }
|
||||
|
||||
static address remove_activation_entry() { return _remove_activation_entry; }
|
||||
static address throw_exception_entry() { return _throw_exception_entry; }
|
||||
|
@ -422,14 +422,6 @@ const size_t minimumStringTableSize = 128;
|
||||
const size_t defaultSymbolTableSize = 32768; // 2^15
|
||||
const size_t minimumSymbolTableSize = 1024;
|
||||
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
// HotSwap - for JVMTI aka Class File Replacement and PopFrame
|
||||
//
|
||||
// Determines whether on-the-fly class replacement and frame popping are enabled.
|
||||
|
||||
#define HOTSWAP
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
// Object alignment, in units of HeapWords.
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user