30 |
30 |
31 class FreeIdSet; |
31 class FreeIdSet; |
32 |
32 |
33 // A closure class for processing card table entries. Note that we don't |
33 // A closure class for processing card table entries. Note that we don't |
34 // require these closure objects to be stack-allocated. |
34 // require these closure objects to be stack-allocated. |
35 class CardTableEntryClosure: public CHeapObj { |
35 class CardTableEntryClosure: public CHeapObj<mtGC> { |
36 public: |
36 public: |
37 // Process the card whose card table entry is "card_ptr". If returns |
37 // Process the card whose card table entry is "card_ptr". If returns |
38 // "false", terminate the iteration early. |
38 // "false", terminate the iteration early. |
39 virtual bool do_card_ptr(jbyte* card_ptr, int worker_i = 0) = 0; |
39 virtual bool do_card_ptr(jbyte* card_ptr, int worker_i = 0) = 0; |
40 }; |
40 }; |