Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8241574: Shenandoah: remove ShenandoahAssertToSpaceClosure
Reviewed-by: zgu, bmathiske, shade
  • Loading branch information
Charlie Gracie authored and shipilev committed Aug 10, 2020
1 parent a80a39e commit bfbfd928c7d77c89ad7ee2cd8ca98139f3cc6a3f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
@@ -82,20 +82,6 @@
#include "services/mallocTracker.hpp"
#include "utilities/powerOfTwo.hpp"

#ifdef ASSERT
template <class T>
void ShenandoahAssertToSpaceClosure::do_oop_work(T* p) {
T o = RawAccess<>::oop_load(p);
if (! CompressedOops::is_null(o)) {
oop obj = CompressedOops::decode_not_null(o);
shenandoah_assert_not_forwarded(p, obj);
}
}

void ShenandoahAssertToSpaceClosure::do_oop(narrowOop* p) { do_oop_work(p); }
void ShenandoahAssertToSpaceClosure::do_oop(oop* p) { do_oop_work(p); }
#endif

class ShenandoahPretouchHeapTask : public AbstractGangTask {
private:
ShenandoahRegionIterator _regions;
@@ -105,17 +105,6 @@ class ShenandoahHeapRegionClosure : public StackObj {
virtual bool is_thread_safe() { return false; }
};

#ifdef ASSERT
class ShenandoahAssertToSpaceClosure : public OopClosure {
private:
template <class T>
void do_oop_work(T* p);
public:
void do_oop(narrowOop* p);
void do_oop(oop* p);
};
#endif

typedef ShenandoahLock ShenandoahHeapLock;
typedef ShenandoahLocker ShenandoahHeapLocker;

0 comments on commit bfbfd92

Please sign in to comment.