--- a/hotspot/src/share/vm/gc_implementation/g1/dirtyCardQueue.hpp Fri Oct 01 21:48:40 2010 -0700
+++ b/hotspot/src/share/vm/gc_implementation/g1/dirtyCardQueue.hpp Fri Oct 01 16:43:05 2010 -0400
@@ -37,11 +37,10 @@
class DirtyCardQueue: public PtrQueue {
public:
DirtyCardQueue(PtrQueueSet* qset_, bool perm = false) :
- PtrQueue(qset_, perm)
- {
- // Dirty card queues are always active.
- _active = true;
- }
+ // Dirty card queues are always active, so we create them with their
+ // active field set to true.
+ PtrQueue(qset_, perm, true /* active */) { }
+
// Apply the closure to all elements, and reset the index to make the
// buffer empty. If a closure application returns "false", return
// "false" immediately, halting the iteration. If "consume" is true,