src/share/vm/utilities/taskqueue.hpp

changeset 810
81cd571500b0
parent 791
1ee8caae33af
child 976
23673011938d
     1.1 --- a/src/share/vm/utilities/taskqueue.hpp	Tue Sep 30 11:49:31 2008 -0700
     1.2 +++ b/src/share/vm/utilities/taskqueue.hpp	Tue Sep 30 12:20:22 2008 -0700
     1.3 @@ -557,32 +557,32 @@
     1.4  typedef GenericTaskQueue<StarTask>     OopStarTaskQueue;
     1.5  typedef GenericTaskQueueSet<StarTask>  OopStarTaskQueueSet;
     1.6  
     1.7 -typedef size_t ChunkTask;  // index for chunk
     1.8 -typedef GenericTaskQueue<ChunkTask>    ChunkTaskQueue;
     1.9 -typedef GenericTaskQueueSet<ChunkTask> ChunkTaskQueueSet;
    1.10 +typedef size_t RegionTask;  // index for region
    1.11 +typedef GenericTaskQueue<RegionTask>    RegionTaskQueue;
    1.12 +typedef GenericTaskQueueSet<RegionTask> RegionTaskQueueSet;
    1.13  
    1.14 -class ChunkTaskQueueWithOverflow: public CHeapObj {
    1.15 +class RegionTaskQueueWithOverflow: public CHeapObj {
    1.16   protected:
    1.17 -  ChunkTaskQueue              _chunk_queue;
    1.18 -  GrowableArray<ChunkTask>*   _overflow_stack;
    1.19 +  RegionTaskQueue              _region_queue;
    1.20 +  GrowableArray<RegionTask>*   _overflow_stack;
    1.21  
    1.22   public:
    1.23 -  ChunkTaskQueueWithOverflow() : _overflow_stack(NULL) {}
    1.24 +  RegionTaskQueueWithOverflow() : _overflow_stack(NULL) {}
    1.25    // Initialize both stealable queue and overflow
    1.26    void initialize();
    1.27    // Save first to stealable queue and then to overflow
    1.28 -  void save(ChunkTask t);
    1.29 +  void save(RegionTask t);
    1.30    // Retrieve first from overflow and then from stealable queue
    1.31 -  bool retrieve(ChunkTask& chunk_index);
    1.32 +  bool retrieve(RegionTask& region_index);
    1.33    // Retrieve from stealable queue
    1.34 -  bool retrieve_from_stealable_queue(ChunkTask& chunk_index);
    1.35 +  bool retrieve_from_stealable_queue(RegionTask& region_index);
    1.36    // Retrieve from overflow
    1.37 -  bool retrieve_from_overflow(ChunkTask& chunk_index);
    1.38 +  bool retrieve_from_overflow(RegionTask& region_index);
    1.39    bool is_empty();
    1.40    bool stealable_is_empty();
    1.41    bool overflow_is_empty();
    1.42 -  juint stealable_size() { return _chunk_queue.size(); }
    1.43 -  ChunkTaskQueue* task_queue() { return &_chunk_queue; }
    1.44 +  juint stealable_size() { return _region_queue.size(); }
    1.45 +  RegionTaskQueue* task_queue() { return &_region_queue; }
    1.46  };
    1.47  
    1.48 -#define USE_ChunkTaskQueueWithOverflow
    1.49 +#define USE_RegionTaskQueueWithOverflow

mercurial