< prev index next >

src/share/vm/gc_implementation/parallelScavenge/cardTableExtension.cpp

Print this page
rev 7858 : 8073543: Circular include dependency between psScavenge.inline.hpp and psPromotionManager.inline.hpp

   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  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_implementation/parallelScavenge/cardTableExtension.hpp"
  27 #include "gc_implementation/parallelScavenge/gcTaskManager.hpp"
  28 #include "gc_implementation/parallelScavenge/parallelScavengeHeap.hpp"


  29 #include "gc_implementation/parallelScavenge/psTasks.hpp"
  30 #include "gc_implementation/parallelScavenge/psYoungGen.hpp"
  31 #include "oops/oop.inline.hpp"
  32 #include "oops/oop.psgc.inline.hpp"
  33 #include "runtime/prefetch.inline.hpp"
  34 
  35 // Checks an individual oop for missing precise marks. Mark
  36 // may be either dirty or newgen.
  37 class CheckForUnmarkedOops : public OopClosure {
  38  private:
  39   PSYoungGen*         _young_gen;
  40   CardTableExtension* _card_table;
  41   HeapWord*           _unmarked_addr;
  42   jbyte*              _unmarked_card;
  43 
  44  protected:
  45   template <class T> void do_oop_work(T* p) {
  46     oop obj = oopDesc::load_decode_heap_oop(p);
  47     if (_young_gen->is_in_reserved(obj) &&
  48         !_card_table->addr_is_marked_imprecise(p)) {



   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  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_implementation/parallelScavenge/cardTableExtension.hpp"
  27 #include "gc_implementation/parallelScavenge/gcTaskManager.hpp"
  28 #include "gc_implementation/parallelScavenge/parallelScavengeHeap.hpp"
  29 #include "gc_implementation/parallelScavenge/psPromotionManager.hpp"
  30 #include "gc_implementation/parallelScavenge/psScavenge.hpp"
  31 #include "gc_implementation/parallelScavenge/psTasks.hpp"
  32 #include "gc_implementation/parallelScavenge/psYoungGen.hpp"
  33 #include "oops/oop.inline.hpp"
  34 #include "oops/oop.psgc.inline.hpp"
  35 #include "runtime/prefetch.inline.hpp"
  36 
  37 // Checks an individual oop for missing precise marks. Mark
  38 // may be either dirty or newgen.
  39 class CheckForUnmarkedOops : public OopClosure {
  40  private:
  41   PSYoungGen*         _young_gen;
  42   CardTableExtension* _card_table;
  43   HeapWord*           _unmarked_addr;
  44   jbyte*              _unmarked_card;
  45 
  46  protected:
  47   template <class T> void do_oop_work(T* p) {
  48     oop obj = oopDesc::load_decode_heap_oop(p);
  49     if (_young_gen->is_in_reserved(obj) &&
  50         !_card_table->addr_is_marked_imprecise(p)) {


< prev index next >