src/share/vm/memory/space.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/memory

src/share/vm/memory/space.cpp

Print this page




  25 #include "precompiled.hpp"
  26 #include "classfile/systemDictionary.hpp"
  27 #include "classfile/vmSymbols.hpp"
  28 #include "gc_implementation/shared/liveRange.hpp"
  29 #include "gc_implementation/shared/markSweep.hpp"
  30 #include "gc_implementation/shared/spaceDecorator.hpp"
  31 #include "memory/blockOffsetTable.inline.hpp"
  32 #include "memory/defNewGeneration.hpp"
  33 #include "memory/genCollectedHeap.hpp"
  34 #include "memory/space.hpp"
  35 #include "memory/space.inline.hpp"
  36 #include "memory/universe.inline.hpp"
  37 #include "oops/oop.inline.hpp"
  38 #include "oops/oop.inline2.hpp"
  39 #include "runtime/java.hpp"
  40 #include "runtime/safepoint.hpp"
  41 #include "utilities/copy.hpp"
  42 #include "utilities/globalDefinitions.hpp"
  43 #include "utilities/macros.hpp"
  44 


  45 HeapWord* DirtyCardToOopClosure::get_actual_top(HeapWord* top,
  46                                                 HeapWord* top_obj) {
  47   if (top_obj != NULL) {
  48     if (_sp->block_is_obj(top_obj)) {
  49       if (_precision == CardTableModRefBS::ObjHeadPreciseArray) {
  50         if (oop(top_obj)->is_objArray() || oop(top_obj)->is_typeArray()) {
  51           // An arrayOop is starting on the dirty card - since we do exact
  52           // store checks for objArrays we are done.
  53         } else {
  54           // Otherwise, it is possible that the object starting on the dirty
  55           // card spans the entire card, and that the store happened on a
  56           // later card.  Figure out where the object ends.
  57           // Use the block_size() method of the space over which
  58           // the iteration is being done.  That space (e.g. CMS) may have
  59           // specific requirements on object sizes which will
  60           // be reflected in the block_size() method.
  61           top = top_obj + oop(top_obj)->size();
  62         }
  63       }
  64     } else {




  25 #include "precompiled.hpp"
  26 #include "classfile/systemDictionary.hpp"
  27 #include "classfile/vmSymbols.hpp"
  28 #include "gc_implementation/shared/liveRange.hpp"
  29 #include "gc_implementation/shared/markSweep.hpp"
  30 #include "gc_implementation/shared/spaceDecorator.hpp"
  31 #include "memory/blockOffsetTable.inline.hpp"
  32 #include "memory/defNewGeneration.hpp"
  33 #include "memory/genCollectedHeap.hpp"
  34 #include "memory/space.hpp"
  35 #include "memory/space.inline.hpp"
  36 #include "memory/universe.inline.hpp"
  37 #include "oops/oop.inline.hpp"
  38 #include "oops/oop.inline2.hpp"
  39 #include "runtime/java.hpp"
  40 #include "runtime/safepoint.hpp"
  41 #include "utilities/copy.hpp"
  42 #include "utilities/globalDefinitions.hpp"
  43 #include "utilities/macros.hpp"
  44 
  45 PRAGMA_FORMAT_MUTE_WARNINGS_FOR_GCC
  46 
  47 HeapWord* DirtyCardToOopClosure::get_actual_top(HeapWord* top,
  48                                                 HeapWord* top_obj) {
  49   if (top_obj != NULL) {
  50     if (_sp->block_is_obj(top_obj)) {
  51       if (_precision == CardTableModRefBS::ObjHeadPreciseArray) {
  52         if (oop(top_obj)->is_objArray() || oop(top_obj)->is_typeArray()) {
  53           // An arrayOop is starting on the dirty card - since we do exact
  54           // store checks for objArrays we are done.
  55         } else {
  56           // Otherwise, it is possible that the object starting on the dirty
  57           // card spans the entire card, and that the store happened on a
  58           // later card.  Figure out where the object ends.
  59           // Use the block_size() method of the space over which
  60           // the iteration is being done.  That space (e.g. CMS) may have
  61           // specific requirements on object sizes which will
  62           // be reflected in the block_size() method.
  63           top = top_obj + oop(top_obj)->size();
  64         }
  65       }
  66     } else {


src/share/vm/memory/space.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File