Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.
/ jdk20 Public archive

Commit

Permalink
8298061: vmTestbase/nsk/sysdict/vm/stress/btree/btree012/btree012.jav…
Browse files Browse the repository at this point in the history
…a failed with "fatal error: refcount has gone to zero"

Reviewed-by: iklam, dholmes
  • Loading branch information
coleenp committed Dec 20, 2022
1 parent 65fc058 commit 03d9927
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/hotspot/share/classfile/placeholders.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,11 @@ class PlaceholderEntry {

Symbol* supername() const { return _supername; }
void set_supername(Symbol* supername) {
Symbol::maybe_decrement_refcount(_supername);
_supername = supername;
Symbol::maybe_increment_refcount(_supername);
if (supername != _supername) {
Symbol::maybe_decrement_refcount(_supername);
_supername = supername;
Symbol::maybe_increment_refcount(_supername);
}
}
void clear_supername() {
Symbol::maybe_decrement_refcount(_supername);
Expand Down

1 comment on commit 03d9927

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.