Skip to content

Commit

Permalink
Assert mark context is complete before unloading classes
Browse files Browse the repository at this point in the history
  • Loading branch information
earthling-amzn committed Aug 27, 2024
1 parent 977200a commit d0ed0cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/hotspot/share/gc/shenandoah/shenandoahUnload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ class ShenandoahIsUnloadingOopClosure : public OopClosure {

public:
ShenandoahIsUnloadingOopClosure() :
// TODO: In non-generational mode, this should still be complete_marking_context()
_marking_context(ShenandoahHeap::heap()->marking_context()),
_marking_context(ShenandoahHeap::heap()->complete_marking_context()),
_is_unloading(false) {
}

Expand Down

0 comments on commit d0ed0cd

Please sign in to comment.