Skip to content

Commit c295377

Browse files
committed
8357800: Initialize JvmtiThreadState bool fields with bool literals
Reviewed-by: alanb, stefank
1 parent cdff7b9 commit c295377

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/hotspot/share/prims/jvmtiThreadState.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ JvmtiThreadState::JvmtiThreadState(JavaThread* thread, oop thread_oop)
7474
_the_class_for_redefinition_verification = nullptr;
7575
_scratch_class_for_redefinition_verification = nullptr;
7676
_cur_stack_depth = UNKNOWN_STACK_DEPTH;
77-
_saved_interp_only_mode = 0;
77+
_saved_interp_only_mode = false;
7878

7979
// JVMTI ForceEarlyReturn support
8080
_pending_step_for_earlyret = false;
@@ -800,7 +800,7 @@ void JvmtiThreadState::leave_interp_only_mode() {
800800
assert(is_interp_only_mode(), "leaving interp only when not in interp only mode");
801801
if (_thread == nullptr) {
802802
// Unmounted virtual thread updates the saved value.
803-
_saved_interp_only_mode = 0;
803+
_saved_interp_only_mode = false;
804804
} else {
805805
_thread->set_interp_only_mode(false);
806806
}

0 commit comments

Comments
 (0)