Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/hotspot/share/code/nmethod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,6 @@ const char* nmethod::state() const {
return "not installed";
case in_use:
return "in use";
case not_used:
return "not_used";
case not_entrant:
return "not_entrant";
default:
Expand Down
5 changes: 2 additions & 3 deletions src/hotspot/share/code/nmethod.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ class nmethod : public CodeBlob {
bool _load_reported;

// Protected by CompiledMethod_lock
volatile signed char _state; // {not_installed, in_use, not_used, not_entrant}
volatile signed char _state; // {not_installed, in_use, not_entrant}

// set during construction
uint8_t _has_unsafe_access:1, // May fault due to unsafe access.
Expand Down Expand Up @@ -601,8 +601,7 @@ class nmethod : public CodeBlob {
enum : signed char { not_installed = -1, // in construction, only the owner doing the construction is
// allowed to advance state
in_use = 0, // executable nmethod
not_used = 1, // not entrant, but revivable
not_entrant = 2, // marked for deoptimization but activations may still exist
not_entrant = 1 // marked for deoptimization but activations may still exist
};

// flag accessing and manipulation
Expand Down