--- a/src/hotspot/share/gc/g1/g1OopClosures.inline.hpp Thu Oct 17 20:27:44 2019 +0100
+++ b/src/hotspot/share/gc/g1/g1OopClosures.inline.hpp Thu Oct 17 20:53:35 2019 +0100
@@ -38,6 +38,7 @@
#include "oops/oopsHierarchy.hpp"
#include "oops/oop.inline.hpp"
#include "runtime/prefetch.inline.hpp"
+#include "utilities/align.hpp"
template <class T>
inline void G1ScanClosureBase::prefetch_and_push(T* p, const oop obj) {
@@ -115,8 +116,8 @@
G1CollectedHeap* g1h = G1CollectedHeap::heap();
// can't do because of races
// assert(oopDesc::is_oop_or_null(obj), "expected an oop");
- assert(check_obj_alignment(obj), "not oop aligned");
- assert(g1h->is_in_reserved(obj), "must be in heap");
+ assert(is_object_aligned(obj), "oop must be aligned");
+ assert(g1h->is_in_reserved(obj), "oop must be in reserved");
HeapRegion* from = g1h->heap_region_containing(p);
@@ -155,7 +156,7 @@
assert(to_rem_set != NULL, "Need per-region 'into' remsets.");
if (to_rem_set->is_tracked()) {
- to_rem_set->add_reference(p, _worker_i);
+ to_rem_set->add_reference(p, _worker_id);
}
}
@@ -230,9 +231,9 @@
const G1HeapRegionAttr state = _g1h->region_attr(obj);
if (state.is_in_cset()) {
oop forwardee;
- markOop m = obj->mark_raw();
- if (m->is_marked()) {
- forwardee = (oop) m->decode_pointer();
+ markWord m = obj->mark_raw();
+ if (m.is_marked()) {
+ forwardee = (oop) m.decode_pointer();
} else {
forwardee = _par_scan_state->copy_to_survivor_space(state, obj, m);
}