hotspot/src/share/vm/gc/parallel/cardTableExtension.cpp
changeset 46968 9119841280f4
parent 46625 edefffab74e2
equal deleted inserted replaced
46953:39063b484ec2 46968:9119841280f4
     1 /*
     1 /*
     2  * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   285         // scan all objects in the range
   285         // scan all objects in the range
   286         if (interval != 0) {
   286         if (interval != 0) {
   287           while (p < to) {
   287           while (p < to) {
   288             Prefetch::write(p, interval);
   288             Prefetch::write(p, interval);
   289             oop m = oop(p);
   289             oop m = oop(p);
   290             assert(m->is_oop_or_null(), "Expected an oop or NULL for header field at " PTR_FORMAT, p2i(m));
   290             assert(oopDesc::is_oop_or_null(m), "Expected an oop or NULL for header field at " PTR_FORMAT, p2i(m));
   291             pm->push_contents(m);
   291             pm->push_contents(m);
   292             p += m->size();
   292             p += m->size();
   293           }
   293           }
   294           pm->drain_stacks_cond_depth();
   294           pm->drain_stacks_cond_depth();
   295         } else {
   295         } else {
   296           while (p < to) {
   296           while (p < to) {
   297             oop m = oop(p);
   297             oop m = oop(p);
   298             assert(m->is_oop_or_null(), "Expected an oop or NULL for header field at " PTR_FORMAT, p2i(m));
   298             assert(oopDesc::is_oop_or_null(m), "Expected an oop or NULL for header field at " PTR_FORMAT, p2i(m));
   299             pm->push_contents(m);
   299             pm->push_contents(m);
   300             p += m->size();
   300             p += m->size();
   301           }
   301           }
   302           pm->drain_stacks_cond_depth();
   302           pm->drain_stacks_cond_depth();
   303         }
   303         }