--- a/src/hotspot/share/gc/serial/markSweep.cpp Wed Nov 15 08:25:28 2017 -0500
+++ b/src/hotspot/share/gc/serial/markSweep.cpp Wed Nov 15 17:05:28 2017 +0100
@@ -40,9 +40,6 @@
#include "oops/typeArrayOop.inline.hpp"
#include "utilities/macros.hpp"
#include "utilities/stack.inline.hpp"
-#if INCLUDE_ALL_GCS
-#include "gc/g1/g1StringDedup.hpp"
-#endif // INCLUDE_ALL_GCS
uint MarkSweep::_total_invocations = 0;
@@ -79,8 +76,7 @@
T heap_oop = oopDesc::load_heap_oop(p);
if (!oopDesc::is_null(heap_oop)) {
oop obj = oopDesc::decode_heap_oop_not_null(heap_oop);
- if (!obj->mark()->is_marked() &&
- !is_closed_archive_object(obj)) {
+ if (!obj->mark()->is_marked()) {
mark_object(obj);
_marking_stack.push(obj);
}
@@ -176,8 +172,7 @@
T heap_oop = oopDesc::load_heap_oop(p);
if (!oopDesc::is_null(heap_oop)) {
oop obj = oopDesc::decode_heap_oop_not_null(heap_oop);
- if (!obj->mark()->is_marked() &&
- !is_closed_archive_object(obj)) {
+ if (!obj->mark()->is_marked()) {
mark_object(obj);
follow_object(obj);
}
@@ -261,7 +256,7 @@
MarkSweep::IsAliveClosure MarkSweep::is_alive;
-bool MarkSweep::IsAliveClosure::do_object_b(oop p) { return p->is_gc_marked() || is_closed_archive_object(p); }
+bool MarkSweep::IsAliveClosure::do_object_b(oop p) { return p->is_gc_marked(); }
MarkSweep::KeepAliveClosure MarkSweep::keep_alive;