8222403: Shenandoah: Remove ShenandoahAlwaysTrueClosure, use AlwaysTrueClosure instead

Reviewed-by: shade
This commit is contained in:
Zhengyu Gu 2019-04-12 09:55:30 -04:00
parent cebdd53c0f
commit dcc0a38e8a
2 changed files with 1 additions and 6 deletions

View File

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

View File

@ -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);