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

Print this page
rev 6290 : imported patch 8035400-move-g1parscanthreadstate-into-own-files


  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 
  35 /*
  36  * This really ought to be an inline function, but apparently the C++
  37  * compiler sometimes sees fit to ignore inline declarations.  Sigh.
  38  */
  39 
  40 template <class T>
  41 inline void FilterIntoCSClosure::do_oop_nv(T* p) {
  42   T heap_oop = oopDesc::load_heap_oop(p);
  43   if (!oopDesc::is_null(heap_oop) &&
  44       _g1->obj_in_cs(oopDesc::decode_heap_oop_not_null(heap_oop))) {
  45     _oc->do_oop(p);
  46   }
  47 }
  48 
  49 template <class T>
  50 inline void FilterOutOfRegionClosure::do_oop_nv(T* p) {




  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 
  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>
  51 inline void FilterOutOfRegionClosure::do_oop_nv(T* p) {