8027675: Full collections with Serial slower in JDK 8 compared to 7u40

Reduced the number of calls to follow_class_loader and instead marked and pushed the klass holder directly. Also removed unneeded calls to adjust_klass.

Reviewed-by: coleenp, jmasa, mgerdin, tschatzl
This commit is contained in:
Stefan Johansson 2013-11-26 14:35:38 +01:00
parent 3646381ba6
commit 22478ae2e0
6 changed files with 12 additions and 35 deletions

View file

@ -44,6 +44,11 @@ inline void MarkSweep::mark_object(oop obj) {
}
}
inline void MarkSweep::follow_klass(Klass* klass) {
oop op = klass->klass_holder();
MarkSweep::mark_and_push(&op);
}
template <class T> inline void MarkSweep::follow_root(T* p) {
assert(!Universe::heap()->is_in_reserved(p),
"roots shouldn't be things within the heap");