mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 18:14:38 +02:00
8038630: Remove ExtendedOopClosure::prefetch_style()
Reviewed-by: coleenp, jmasa
This commit is contained in:
parent
f2de069dc2
commit
a8f01c3f99
3 changed files with 0 additions and 38 deletions
|
@ -116,10 +116,6 @@ class MarkRefsIntoClosure: public CMSOopsInGenClosure {
|
||||||
MarkRefsIntoClosure(MemRegion span, CMSBitMap* bitMap);
|
MarkRefsIntoClosure(MemRegion span, CMSBitMap* bitMap);
|
||||||
virtual void do_oop(oop* p);
|
virtual void do_oop(oop* p);
|
||||||
virtual void do_oop(narrowOop* p);
|
virtual void do_oop(narrowOop* p);
|
||||||
|
|
||||||
Prefetch::style prefetch_style() {
|
|
||||||
return Prefetch::do_read;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class Par_MarkRefsIntoClosure: public CMSOopsInGenClosure {
|
class Par_MarkRefsIntoClosure: public CMSOopsInGenClosure {
|
||||||
|
@ -132,10 +128,6 @@ class Par_MarkRefsIntoClosure: public CMSOopsInGenClosure {
|
||||||
Par_MarkRefsIntoClosure(MemRegion span, CMSBitMap* bitMap);
|
Par_MarkRefsIntoClosure(MemRegion span, CMSBitMap* bitMap);
|
||||||
virtual void do_oop(oop* p);
|
virtual void do_oop(oop* p);
|
||||||
virtual void do_oop(narrowOop* p);
|
virtual void do_oop(narrowOop* p);
|
||||||
|
|
||||||
Prefetch::style prefetch_style() {
|
|
||||||
return Prefetch::do_read;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// A variant of the above used in certain kinds of CMS
|
// A variant of the above used in certain kinds of CMS
|
||||||
|
@ -152,10 +144,6 @@ class MarkRefsIntoVerifyClosure: public CMSOopsInGenClosure {
|
||||||
CMSBitMap* cms_bm);
|
CMSBitMap* cms_bm);
|
||||||
virtual void do_oop(oop* p);
|
virtual void do_oop(oop* p);
|
||||||
virtual void do_oop(narrowOop* p);
|
virtual void do_oop(narrowOop* p);
|
||||||
|
|
||||||
Prefetch::style prefetch_style() {
|
|
||||||
return Prefetch::do_read;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// The non-parallel version (the parallel version appears further below).
|
// The non-parallel version (the parallel version appears further below).
|
||||||
|
@ -181,10 +169,6 @@ class PushAndMarkClosure: public CMSOopClosure {
|
||||||
virtual void do_oop(narrowOop* p);
|
virtual void do_oop(narrowOop* p);
|
||||||
inline void do_oop_nv(oop* p) { PushAndMarkClosure::do_oop_work(p); }
|
inline void do_oop_nv(oop* p) { PushAndMarkClosure::do_oop_work(p); }
|
||||||
inline void do_oop_nv(narrowOop* p) { PushAndMarkClosure::do_oop_work(p); }
|
inline void do_oop_nv(narrowOop* p) { PushAndMarkClosure::do_oop_work(p); }
|
||||||
|
|
||||||
Prefetch::style prefetch_style() {
|
|
||||||
return Prefetch::do_read;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// In the parallel case, the bit map and the
|
// In the parallel case, the bit map and the
|
||||||
|
@ -211,10 +195,6 @@ class Par_PushAndMarkClosure: public CMSOopClosure {
|
||||||
virtual void do_oop(narrowOop* p);
|
virtual void do_oop(narrowOop* p);
|
||||||
inline void do_oop_nv(oop* p) { Par_PushAndMarkClosure::do_oop_work(p); }
|
inline void do_oop_nv(oop* p) { Par_PushAndMarkClosure::do_oop_work(p); }
|
||||||
inline void do_oop_nv(narrowOop* p) { Par_PushAndMarkClosure::do_oop_work(p); }
|
inline void do_oop_nv(narrowOop* p) { Par_PushAndMarkClosure::do_oop_work(p); }
|
||||||
|
|
||||||
Prefetch::style prefetch_style() {
|
|
||||||
return Prefetch::do_read;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// The non-parallel version (the parallel version appears further below).
|
// The non-parallel version (the parallel version appears further below).
|
||||||
|
@ -245,9 +225,6 @@ class MarkRefsIntoAndScanClosure: public CMSOopsInGenClosure {
|
||||||
inline void do_oop_nv(oop* p) { MarkRefsIntoAndScanClosure::do_oop_work(p); }
|
inline void do_oop_nv(oop* p) { MarkRefsIntoAndScanClosure::do_oop_work(p); }
|
||||||
inline void do_oop_nv(narrowOop* p) { MarkRefsIntoAndScanClosure::do_oop_work(p); }
|
inline void do_oop_nv(narrowOop* p) { MarkRefsIntoAndScanClosure::do_oop_work(p); }
|
||||||
|
|
||||||
Prefetch::style prefetch_style() {
|
|
||||||
return Prefetch::do_read;
|
|
||||||
}
|
|
||||||
void set_freelistLock(Mutex* m) {
|
void set_freelistLock(Mutex* m) {
|
||||||
_freelistLock = m;
|
_freelistLock = m;
|
||||||
}
|
}
|
||||||
|
@ -282,9 +259,6 @@ class Par_MarkRefsIntoAndScanClosure: public CMSOopsInGenClosure {
|
||||||
inline void do_oop_nv(oop* p) { Par_MarkRefsIntoAndScanClosure::do_oop_work(p); }
|
inline void do_oop_nv(oop* p) { Par_MarkRefsIntoAndScanClosure::do_oop_work(p); }
|
||||||
inline void do_oop_nv(narrowOop* p) { Par_MarkRefsIntoAndScanClosure::do_oop_work(p); }
|
inline void do_oop_nv(narrowOop* p) { Par_MarkRefsIntoAndScanClosure::do_oop_work(p); }
|
||||||
|
|
||||||
Prefetch::style prefetch_style() {
|
|
||||||
return Prefetch::do_read;
|
|
||||||
}
|
|
||||||
void trim_queue(uint size);
|
void trim_queue(uint size);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -115,9 +115,6 @@ class ScanClosure: public OopsInKlassOrGenClosure {
|
||||||
virtual void do_oop(narrowOop* p);
|
virtual void do_oop(narrowOop* p);
|
||||||
inline void do_oop_nv(oop* p);
|
inline void do_oop_nv(oop* p);
|
||||||
inline void do_oop_nv(narrowOop* p);
|
inline void do_oop_nv(narrowOop* p);
|
||||||
Prefetch::style prefetch_style() {
|
|
||||||
return Prefetch::do_write;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Closure for scanning DefNewGeneration.
|
// Closure for scanning DefNewGeneration.
|
||||||
|
@ -137,9 +134,6 @@ class FastScanClosure: public OopsInKlassOrGenClosure {
|
||||||
virtual void do_oop(narrowOop* p);
|
virtual void do_oop(narrowOop* p);
|
||||||
inline void do_oop_nv(oop* p);
|
inline void do_oop_nv(oop* p);
|
||||||
inline void do_oop_nv(narrowOop* p);
|
inline void do_oop_nv(narrowOop* p);
|
||||||
Prefetch::style prefetch_style() {
|
|
||||||
return Prefetch::do_write;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class KlassScanClosure: public KlassClosure {
|
class KlassScanClosure: public KlassClosure {
|
||||||
|
|
|
@ -27,7 +27,6 @@
|
||||||
|
|
||||||
#include "memory/allocation.hpp"
|
#include "memory/allocation.hpp"
|
||||||
#include "memory/memRegion.hpp"
|
#include "memory/memRegion.hpp"
|
||||||
#include "runtime/prefetch.hpp"
|
|
||||||
#include "utilities/top.hpp"
|
#include "utilities/top.hpp"
|
||||||
|
|
||||||
class CodeBlob;
|
class CodeBlob;
|
||||||
|
@ -84,11 +83,6 @@ class ExtendedOopClosure : public OopClosure {
|
||||||
|
|
||||||
virtual void do_class_loader_data(ClassLoaderData* cld) { ShouldNotReachHere(); }
|
virtual void do_class_loader_data(ClassLoaderData* cld) { ShouldNotReachHere(); }
|
||||||
|
|
||||||
// Controls how prefetching is done for invocations of this closure.
|
|
||||||
Prefetch::style prefetch_style() { // Note that this is non-virtual.
|
|
||||||
return Prefetch::do_none;
|
|
||||||
}
|
|
||||||
|
|
||||||
// True iff this closure may be safely applied more than once to an oop
|
// True iff this closure may be safely applied more than once to an oop
|
||||||
// location without an intervening "major reset" (like the end of a GC).
|
// location without an intervening "major reset" (like the end of a GC).
|
||||||
virtual bool idempotent() { return false; }
|
virtual bool idempotent() { return false; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue