< prev index next >
src/share/vm/gc/g1/dirtyCardQueue.hpp
Print this page
rev 10742 : Make fields used in lock-free algorithms volatile
@@ -35,11 +35,11 @@
// require these closure objects to be stack-allocated.
class CardTableEntryClosure: public CHeapObj<mtGC> {
public:
// Process the card whose card table entry is "card_ptr". If returns
// "false", terminate the iteration early.
- virtual bool do_card_ptr(jbyte* card_ptr, uint worker_i) = 0;
+ virtual bool do_card_ptr(volatile jbyte* card_ptr, uint worker_i) = 0;
};
// A ptrQueue whose elements are "oops", pointers to object heads.
class DirtyCardQueue: public PtrQueue {
public:
< prev index next >