src/share/vm/gc_implementation/g1/ptrQueue.hpp

changeset 1752
d4197f8d516a
parent 1546
44f61c24ddab
child 1907
c18cbe5936b8
     1.1 --- a/src/share/vm/gc_implementation/g1/ptrQueue.hpp	Mon Mar 22 02:40:53 2010 -0700
     1.2 +++ b/src/share/vm/gc_implementation/g1/ptrQueue.hpp	Thu Mar 18 12:14:59 2010 -0400
     1.3 @@ -62,7 +62,7 @@
     1.4  public:
     1.5    // Initialize this queue to contain a null buffer, and be part of the
     1.6    // given PtrQueueSet.
     1.7 -  PtrQueue(PtrQueueSet*, bool perm = false);
     1.8 +  PtrQueue(PtrQueueSet*, bool perm = false, bool active = false);
     1.9    // Release any contained resources.
    1.10    void flush();
    1.11    // Calls flush() when destroyed.
    1.12 @@ -101,6 +101,8 @@
    1.13      }
    1.14    }
    1.15  
    1.16 +  bool is_active() { return _active; }
    1.17 +
    1.18    static int byte_index_to_index(int ind) {
    1.19      assert((ind % oopSize) == 0, "Invariant.");
    1.20      return ind / oopSize;
    1.21 @@ -257,7 +259,7 @@
    1.22    bool process_completed_buffers() { return _process_completed; }
    1.23    void set_process_completed(bool x) { _process_completed = x; }
    1.24  
    1.25 -  bool active() { return _all_active; }
    1.26 +  bool is_active() { return _all_active; }
    1.27  
    1.28    // Set the buffer size.  Should be called before any "enqueue" operation
    1.29    // can be called.  And should only be called once.

mercurial