Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8334147: Shenandoah: Avoid taking lock for disabled free set logging #19915

Closed
wants to merge 19 commits into from
Closed
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
5 changes: 3 additions & 2 deletions src/hotspot/share/gc/shenandoah/shenandoahFreeSet.hpp
Original file line number Diff line number Diff line change
@@ -318,6 +318,9 @@ class ShenandoahFreeSet : public CHeapObj<mtGC> {

void finish_rebuild(size_t cset_regions);

// log status, assuming lock has already been acquired by the caller.
void log_status();

public:
ShenandoahFreeSet(ShenandoahHeap* heap, size_t max_regions);

@@ -340,8 +343,6 @@ class ShenandoahFreeSet : public CHeapObj<mtGC> {
void move_regions_from_collector_to_mutator(size_t cset_regions);

void recycle_trash();
// log status, assuming lock has already been acquired by the caller.
void log_status();
// Acquire heap lock and log status, assuming heap lock is not acquired by the caller.
void log_status_under_lock();