< prev index next >
src/hotspot/share/gc/serial/markSweep.inline.hpp
Print this page
@@ -30,10 +30,11 @@
#include "memory/universe.hpp"
#include "oops/markWord.inline.hpp"
#include "oops/access.inline.hpp"
#include "oops/compressedOops.inline.hpp"
#include "oops/oop.inline.hpp"
+#include "utilities/align.hpp"
#include "utilities/stack.inline.hpp"
inline void MarkSweep::mark_object(oop obj) {
// some marks may contain information we need to preserve so we store them away
// and overwrite the mark. We'll restore it at the end of markSweep.
@@ -85,11 +86,11 @@
(UseBiasedLocking && obj->mark_raw().has_bias_pattern()),
// not gc marked?
"should be forwarded");
if (new_obj != NULL) {
- DEBUG_ONLY(Universe::heap()->check_oop_location((HeapWord*)new_obj);)
+ assert(is_object_aligned(new_obj), "oop must be aligned");
RawAccess<IS_NOT_NULL>::oop_store(p, new_obj);
}
}
}
< prev index next >