mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-07 00:48:38 +00:00
8222403: Shenandoah: Remove ShenandoahAlwaysTrueClosure, use AlwaysTrueClosure instead
Reviewed-by: shade
This commit is contained in:
parent
cebdd53c0f
commit
dcc0a38e8a
@ -115,11 +115,6 @@ public:
|
||||
};
|
||||
#endif
|
||||
|
||||
class ShenandoahAlwaysTrueClosure : public BoolObjectClosure {
|
||||
public:
|
||||
bool do_object_b(oop p) { return true; }
|
||||
};
|
||||
|
||||
class ShenandoahForwardedIsAliveClosure: public BoolObjectClosure {
|
||||
private:
|
||||
ShenandoahMarkingContext* const _mark_context;
|
||||
|
||||
@ -92,7 +92,7 @@ void ShenandoahStringDedup::parallel_oops_do(BoolObjectClosure* is_alive, OopClo
|
||||
void ShenandoahStringDedup::oops_do_slow(OopClosure* cl) {
|
||||
assert(SafepointSynchronize::is_at_safepoint(), "Must be at a safepoint");
|
||||
assert(is_enabled(), "String deduplication not enabled");
|
||||
ShenandoahAlwaysTrueClosure always_true;
|
||||
AlwaysTrueClosure always_true;
|
||||
StringDedupUnlinkOrOopsDoClosure sd_cl(&always_true, cl);
|
||||
StringDedupQueue::unlink_or_oops_do(&sd_cl);
|
||||
StringDedupTable::unlink_or_oops_do(&sd_cl, 0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user