Skip to content

Commit be1f710

Browse files
committed
cleanup
1 parent 7402604 commit be1f710

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

src/hotspot/share/code/nmethod.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1964,12 +1964,12 @@ void nmethod::invalidate_osr_method() {
19641964
}
19651965
}
19661966

1967-
void nmethod::log_state_change(NMethodChangeReason statusReason) const {
1967+
void nmethod::log_state_change(NMethodChangeReason reason) const {
19681968
if (LogCompilation) {
19691969
if (xtty != nullptr) {
19701970
ttyLocker ttyl; // keep the following output all in one block
19711971
xtty->begin_elem("make_not_entrant thread='%zu' reason='%d'",
1972-
os::current_thread_id(), statusReason);
1972+
os::current_thread_id(), reason);
19731973
log_identity(xtty);
19741974
xtty->stamp();
19751975
xtty->end_elem();
@@ -1978,7 +1978,7 @@ void nmethod::log_state_change(NMethodChangeReason statusReason) const {
19781978

19791979
ResourceMark rm;
19801980
stringStream ss(NEW_RESOURCE_ARRAY(char, 256), 256);
1981-
ss.print("made not entrant: %d", statusReason);
1981+
ss.print("made not entrant: %d", reason);
19821982

19831983
CompileTask::print_ul(this, ss.freeze());
19841984
if (PrintCompilation) {
@@ -1993,7 +1993,7 @@ void nmethod::unlink_from_method() {
19931993
}
19941994

19951995
// Invalidate code
1996-
bool nmethod::make_not_entrant(NMethodChangeReason statusReason) {
1996+
bool nmethod::make_not_entrant(NMethodChangeReason reason) {
19971997
// This can be called while the system is already at a safepoint which is ok
19981998
NoSafepointVerifier nsv;
19991999

@@ -2051,7 +2051,7 @@ bool nmethod::make_not_entrant(NMethodChangeReason statusReason) {
20512051
assert(success, "Transition can't fail");
20522052

20532053
// Log the transition once
2054-
log_state_change(statusReason);
2054+
log_state_change(reason);
20552055

20562056
// Remove nmethod from method.
20572057
unlink_from_method();

src/hotspot/share/code/nmethod.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,6 @@ class nmethod : public CodeBlob {
489489
missing_exception_handler,
490490
uncommon_trap,
491491
zombie,
492-
gc_unlinking,
493-
gc_unlinking_cold,
494492
JVMCI_invalidate_nmethod,
495493
JVMCI_new_installation,
496494
JVMCI_replacing_with_new_code,
@@ -658,7 +656,7 @@ class nmethod : public CodeBlob {
658656
// alive. It is used when an uncommon trap happens. Returns true
659657
// if this thread changed the state of the nmethod or false if
660658
// another thread performed the transition.
661-
bool make_not_entrant(NMethodChangeReason statusReason);
659+
bool make_not_entrant(NMethodChangeReason reason);
662660
bool make_not_used() { return make_not_entrant(nmethod::not_used); }
663661

664662
bool is_marked_for_deoptimization() const { return deoptimization_status() != not_marked; }
@@ -972,7 +970,7 @@ class nmethod : public CodeBlob {
972970
// Logging
973971
void log_identity(xmlStream* log) const;
974972
void log_new_nmethod() const;
975-
void log_state_change(NMethodChangeReason statusReason) const;
973+
void log_state_change(NMethodChangeReason reason) const;
976974

977975
// Prints block-level comments, including nmethod specific block labels:
978976
void print_nmethod_labels(outputStream* stream, address block_begin, bool print_section_labels=true) const;

0 commit comments

Comments
 (0)