< prev index next >

src/share/vm/gc/g1/dirtyCardQueue.hpp

Print this page




   8  *
   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 #ifndef SHARE_VM_GC_G1_DIRTYCARDQUEUE_HPP
  26 #define SHARE_VM_GC_G1_DIRTYCARDQUEUE_HPP
  27 
  28 #include "gc/g1/ptrQueue.hpp"
  29 #include "memory/allocation.hpp"
  30 
  31 class FreeIdSet;
  32 class DirtyCardQueueSet;
  33 
  34 // A closure class for processing card table entries.  Note that we don't
  35 // require these closure objects to be stack-allocated.
  36 class CardTableEntryClosure: public CHeapObj<mtGC> {
  37 public:
  38   // Process the card whose card table entry is "card_ptr".  If returns
  39   // "false", terminate the iteration early.
  40   virtual bool do_card_ptr(jbyte* card_ptr, uint worker_i) = 0;
  41 };
  42 
  43 // A ptrQueue whose elements are "oops", pointers to object heads.
  44 class DirtyCardQueue: public PtrQueue {
  45 public:
  46   DirtyCardQueue(DirtyCardQueueSet* qset, bool permanent = false);
  47 
  48   // Flush before destroying; queue may be used to capture pending work while




   8  *
   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 #ifndef SHARE_VM_GC_G1_DIRTYCARDQUEUE_HPP
  26 #define SHARE_VM_GC_G1_DIRTYCARDQUEUE_HPP
  27 
  28 #include "gc/shared/ptrQueue.hpp"
  29 #include "memory/allocation.hpp"
  30 
  31 class FreeIdSet;
  32 class DirtyCardQueueSet;
  33 
  34 // A closure class for processing card table entries.  Note that we don't
  35 // require these closure objects to be stack-allocated.
  36 class CardTableEntryClosure: public CHeapObj<mtGC> {
  37 public:
  38   // Process the card whose card table entry is "card_ptr".  If returns
  39   // "false", terminate the iteration early.
  40   virtual bool do_card_ptr(jbyte* card_ptr, uint worker_i) = 0;
  41 };
  42 
  43 // A ptrQueue whose elements are "oops", pointers to object heads.
  44 class DirtyCardQueue: public PtrQueue {
  45 public:
  46   DirtyCardQueue(DirtyCardQueueSet* qset, bool permanent = false);
  47 
  48   // Flush before destroying; queue may be used to capture pending work while


< prev index next >