8367576: JvmtiThreadState::_debuggable is unused

Reviewed-by: amenkov, ayang, shade
This commit is contained in:
Francesco Andreuzzi 2025-09-15 08:02:27 +00:00 committed by Aleksey Shipilev
parent 9ca7b24421
commit c16462b3b4
2 changed files with 0 additions and 10 deletions

View File

@ -59,7 +59,6 @@ JvmtiThreadState::JvmtiThreadState(JavaThread* thread, oop thread_oop)
_thread = thread;
_thread_saved = nullptr;
_exception_state = ES_CLEARED;
_debuggable = true;
_hide_single_stepping = false;
_pending_interp_only_mode = false;
_hide_level = 0;

View File

@ -444,15 +444,6 @@ class JvmtiThreadState : public CHeapObj<mtInternal> {
return klass;
}
// Todo: get rid of this!
private:
bool _debuggable;
public:
// Should the thread be enumerated by jvmtiInternal::GetAllThreads?
bool is_debuggable() { return _debuggable; }
// If a thread cannot be suspended (has no valid last_java_frame) then it gets marked !debuggable
void set_debuggable(bool debuggable) { _debuggable = debuggable; }
public:
// Thread local event collector setter and getter methods.