--- old/src/hotspot/share/gc/g1/g1FullGCMarker.inline.hpp 2018-03-25 12:59:18.975944508 +0200 +++ new/src/hotspot/share/gc/g1/g1FullGCMarker.inline.hpp 2018-03-25 12:59:18.805946808 +0200 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2018 Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -31,6 +31,7 @@ #include "gc/g1/g1StringDedup.hpp" #include "gc/g1/g1StringDedupQueue.hpp" #include "gc/shared/preservedMarks.inline.hpp" +#include "oops/oop.inline.hpp" #include "utilities/debug.hpp" inline bool G1FullGCMarker::mark_object(oop obj) { @@ -46,7 +47,7 @@ } // Marked by us, preserve if needed. - markOop mark = obj->mark(); + markOop mark = obj->mark_raw(); if (mark->must_be_preserved(obj) && !G1ArchiveAllocator::is_open_archive_object(obj)) { preserved_stack()->push(obj, mark);