8201436: Replace oop_ps_push_contents with oop_iterate and closure
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11 * version 2 for more details (a copy is included in the LICENSE file that
12 * accompanied this code).
13 *
14 * You should have received a copy of the GNU General Public License version
15 * 2 along with this work; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17 *
18 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
19 * or visit www.oracle.com if you need additional information or have any
20 * questions.
21 *
22 */
23
24 #include "precompiled.hpp"
25 #include "gc/parallel/gcTaskManager.hpp"
26 #include "gc/parallel/objectStartArray.inline.hpp"
27 #include "gc/parallel/parallelScavengeHeap.inline.hpp"
28 #include "gc/parallel/psCardTable.hpp"
29 #include "gc/parallel/psPromotionManager.inline.hpp"
30 #include "gc/parallel/psScavenge.hpp"
31 #include "gc/parallel/psTasks.hpp"
32 #include "gc/parallel/psYoungGen.hpp"
33 #include "memory/iterator.inline.hpp"
34 #include "oops/access.inline.hpp"
35 #include "oops/oop.inline.hpp"
36 #include "runtime/prefetch.inline.hpp"
37 #include "utilities/align.hpp"
38
39 // Checks an individual oop for missing precise marks. Mark
40 // may be either dirty or newgen.
41 class CheckForUnmarkedOops : public BasicOopIterateClosure {
42 private:
43 PSYoungGen* _young_gen;
44 PSCardTable* _card_table;
45 HeapWord* _unmarked_addr;
46
47 protected:
48 template <class T> void do_oop_work(T* p) {
49 oop obj = RawAccess<>::oop_load(p);
|
10 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
11 * version 2 for more details (a copy is included in the LICENSE file that
12 * accompanied this code).
13 *
14 * You should have received a copy of the GNU General Public License version
15 * 2 along with this work; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17 *
18 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
19 * or visit www.oracle.com if you need additional information or have any
20 * questions.
21 *
22 */
23
24 #include "precompiled.hpp"
25 #include "gc/parallel/gcTaskManager.hpp"
26 #include "gc/parallel/objectStartArray.inline.hpp"
27 #include "gc/parallel/parallelScavengeHeap.inline.hpp"
28 #include "gc/parallel/psCardTable.hpp"
29 #include "gc/parallel/psPromotionManager.inline.hpp"
30 #include "gc/parallel/psScavenge.inline.hpp"
31 #include "gc/parallel/psTasks.hpp"
32 #include "gc/parallel/psYoungGen.hpp"
33 #include "memory/iterator.inline.hpp"
34 #include "oops/access.inline.hpp"
35 #include "oops/oop.inline.hpp"
36 #include "runtime/prefetch.inline.hpp"
37 #include "utilities/align.hpp"
38
39 // Checks an individual oop for missing precise marks. Mark
40 // may be either dirty or newgen.
41 class CheckForUnmarkedOops : public BasicOopIterateClosure {
42 private:
43 PSYoungGen* _young_gen;
44 PSCardTable* _card_table;
45 HeapWord* _unmarked_addr;
46
47 protected:
48 template <class T> void do_oop_work(T* p) {
49 oop obj = RawAccess<>::oop_load(p);
|