Skip to content

Commit

Permalink
8320907: Shenandoah: Remove ShenandoahSelfFixing flag
Browse files Browse the repository at this point in the history
Backport-of: 43c7f6a673c2fa0b4dbec232e92b621619a98246
  • Loading branch information
shipilev committed Jan 16, 2024
1 parent 1b5aeb9 commit 7fe7cfc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/hotspot/share/gc/shenandoah/c2/shenandoahSupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1386,11 +1386,9 @@ void ShenandoahBarrierC2Support::pin_and_expand(PhaseIdealLoop* phase) {
Node* result_mem = nullptr;

Node* addr;
if (ShenandoahSelfFixing) {
{
VectorSet visited;
addr = get_load_addr(phase, visited, lrb);
} else {
addr = phase->igvn().zerocon(T_OBJECT);
}
if (addr->Opcode() == Op_AddP) {
Node* orig_base = addr->in(AddPNode::Base);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ inline oop ShenandoahBarrierSet::load_reference_barrier(DecoratorSet decorators,
}

oop fwd = load_reference_barrier(obj);
if (ShenandoahSelfFixing && load_addr != nullptr && fwd != obj) {
if (load_addr != nullptr && fwd != obj) {
// Since we are here and we know the load address, update the reference.
ShenandoahHeap::atomic_update_oop(fwd, load_addr, obj);
}
Expand Down
3 changes: 0 additions & 3 deletions src/hotspot/share/gc/shenandoah/shenandoah_globals.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,6 @@
product(bool, ShenandoahLoopOptsAfterExpansion, true, DIAGNOSTIC, \
"Attempt more loop opts after barrier expansion.") \
\
product(bool, ShenandoahSelfFixing, true, DIAGNOSTIC, \
"Fix references with load reference barrier. Disabling this " \
"might degrade performance.")

// end of GC_SHENANDOAH_FLAGS

Expand Down

1 comment on commit 7fe7cfc

@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.