src/share/vm/gc_implementation/g1/g1OopClosures.inline.hpp

Print this page
rev 6334 : 8035400: Move G1ParScanThreadState into its own files
Summary: Extract the G1ParScanThreadState class from G1CollectedHeap.?pp into its own files.
Reviewed-by: brutisso, mgerdin


  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 #ifndef SHARE_VM_GC_IMPLEMENTATION_G1_G1OOPCLOSURES_INLINE_HPP
  26 #define SHARE_VM_GC_IMPLEMENTATION_G1_G1OOPCLOSURES_INLINE_HPP
  27 
  28 #include "gc_implementation/g1/concurrentMark.inline.hpp"
  29 #include "gc_implementation/g1/g1CollectedHeap.hpp"
  30 #include "gc_implementation/g1/g1OopClosures.hpp"

  31 #include "gc_implementation/g1/g1RemSet.hpp"
  32 #include "gc_implementation/g1/g1RemSet.inline.hpp"
  33 #include "gc_implementation/g1/heapRegionRemSet.hpp"
  34 #include "runtime/prefetch.inline.hpp"
  35 
  36 /*
  37  * This really ought to be an inline function, but apparently the C++
  38  * compiler sometimes sees fit to ignore inline declarations.  Sigh.
  39  */
  40 
  41 template <class T>
  42 inline void FilterIntoCSClosure::do_oop_nv(T* p) {
  43   T heap_oop = oopDesc::load_heap_oop(p);
  44   if (!oopDesc::is_null(heap_oop) &&
  45       _g1->obj_in_cs(oopDesc::decode_heap_oop_not_null(heap_oop))) {
  46     _oc->do_oop(p);
  47   }
  48 }
  49 
  50 template <class T>




  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 #ifndef SHARE_VM_GC_IMPLEMENTATION_G1_G1OOPCLOSURES_INLINE_HPP
  26 #define SHARE_VM_GC_IMPLEMENTATION_G1_G1OOPCLOSURES_INLINE_HPP
  27 
  28 #include "gc_implementation/g1/concurrentMark.inline.hpp"
  29 #include "gc_implementation/g1/g1CollectedHeap.hpp"
  30 #include "gc_implementation/g1/g1OopClosures.hpp"
  31 #include "gc_implementation/g1/g1ParScanThreadState.inline.hpp"
  32 #include "gc_implementation/g1/g1RemSet.hpp"
  33 #include "gc_implementation/g1/g1RemSet.inline.hpp"
  34 #include "gc_implementation/g1/heapRegionRemSet.hpp"
  35 #include "runtime/prefetch.inline.hpp"
  36 
  37 /*
  38  * This really ought to be an inline function, but apparently the C++
  39  * compiler sometimes sees fit to ignore inline declarations.  Sigh.
  40  */
  41 
  42 template <class T>
  43 inline void FilterIntoCSClosure::do_oop_nv(T* p) {
  44   T heap_oop = oopDesc::load_heap_oop(p);
  45   if (!oopDesc::is_null(heap_oop) &&
  46       _g1->obj_in_cs(oopDesc::decode_heap_oop_not_null(heap_oop))) {
  47     _oc->do_oop(p);
  48   }
  49 }
  50 
  51 template <class T>