From c16462b3b4686982e80fdde6802defafc2de8b1a Mon Sep 17 00:00:00 2001 From: Francesco Andreuzzi Date: Mon, 15 Sep 2025 08:02:27 +0000 Subject: [PATCH] 8367576: JvmtiThreadState::_debuggable is unused Reviewed-by: amenkov, ayang, shade --- src/hotspot/share/prims/jvmtiThreadState.cpp | 1 - src/hotspot/share/prims/jvmtiThreadState.hpp | 9 --------- 2 files changed, 10 deletions(-) diff --git a/src/hotspot/share/prims/jvmtiThreadState.cpp b/src/hotspot/share/prims/jvmtiThreadState.cpp index 419bd9f0550..75b3a0f0157 100644 --- a/src/hotspot/share/prims/jvmtiThreadState.cpp +++ b/src/hotspot/share/prims/jvmtiThreadState.cpp @@ -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; diff --git a/src/hotspot/share/prims/jvmtiThreadState.hpp b/src/hotspot/share/prims/jvmtiThreadState.hpp index fab762c8f38..89d4107e216 100644 --- a/src/hotspot/share/prims/jvmtiThreadState.hpp +++ b/src/hotspot/share/prims/jvmtiThreadState.hpp @@ -444,15 +444,6 @@ class JvmtiThreadState : public CHeapObj { 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.