< prev index next >

src/hotspot/share/gc/parallel/psCardTable.cpp

Print this page




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "gc/parallel/gcTaskManager.hpp"
  27 #include "gc/parallel/objectStartArray.inline.hpp"
  28 #include "gc/parallel/parallelScavengeHeap.inline.hpp"
  29 #include "gc/parallel/psCardTable.hpp"
  30 #include "gc/parallel/psPromotionManager.inline.hpp"
  31 #include "gc/parallel/psScavenge.hpp"
  32 #include "gc/parallel/psTasks.hpp"
  33 #include "gc/parallel/psYoungGen.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 OopClosure {
  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);
  50     if (_young_gen->is_in_reserved(obj) &&
  51         !_card_table->addr_is_marked_imprecise(p)) {
  52       // Don't overwrite the first missing card mark
  53       if (_unmarked_addr == NULL) {




  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "gc/parallel/gcTaskManager.hpp"
  27 #include "gc/parallel/objectStartArray.inline.hpp"
  28 #include "gc/parallel/parallelScavengeHeap.inline.hpp"
  29 #include "gc/parallel/psCardTable.hpp"
  30 #include "gc/parallel/psPromotionManager.inline.hpp"
  31 #include "gc/parallel/psScavenge.hpp"
  32 #include "gc/parallel/psTasks.hpp"
  33 #include "gc/parallel/psYoungGen.hpp"
  34 #include "memory/iterator.inline.hpp"
  35 #include "oops/access.inline.hpp"
  36 #include "oops/oop.inline.hpp"
  37 #include "runtime/prefetch.inline.hpp"
  38 #include "utilities/align.hpp"
  39 
  40 // Checks an individual oop for missing precise marks. Mark
  41 // may be either dirty or newgen.
  42 class CheckForUnmarkedOops : public OopClosure {
  43  private:
  44   PSYoungGen*  _young_gen;
  45   PSCardTable* _card_table;
  46   HeapWord*    _unmarked_addr;
  47 
  48  protected:
  49   template <class T> void do_oop_work(T* p) {
  50     oop obj = RawAccess<>::oop_load(p);
  51     if (_young_gen->is_in_reserved(obj) &&
  52         !_card_table->addr_is_marked_imprecise(p)) {
  53       // Don't overwrite the first missing card mark
  54       if (_unmarked_addr == NULL) {


< prev index next >