equal
deleted
inserted
replaced
301 // |
301 // |
302 // Minor subtlety: claimed() returns true if the region is marked |
302 // Minor subtlety: claimed() returns true if the region is marked |
303 // completed(), which is desirable since a region must be claimed before it |
303 // completed(), which is desirable since a region must be claimed before it |
304 // can be completed. |
304 // can be completed. |
305 bool available() const { return _dc_and_los < dc_one; } |
305 bool available() const { return _dc_and_los < dc_one; } |
306 bool claimed() const { return _dc_and_los >= dc_claimed; } |
306 bool claimed() const { return _dc_and_los >= dc_claimed; } |
307 bool completed() const { return _dc_and_los >= dc_completed; } |
307 bool completed() const { return _dc_and_los >= dc_completed; } |
308 |
308 |
309 // These are not atomic. |
309 // These are not atomic. |
310 void set_destination(HeapWord* addr) { _destination = addr; } |
310 void set_destination(HeapWord* addr) { _destination = addr; } |
311 void set_source_region(size_t region) { _source_region = region; } |
311 void set_source_region(size_t region) { _source_region = region; } |
977 static double _dwl_adjustment; |
977 static double _dwl_adjustment; |
978 #ifdef ASSERT |
978 #ifdef ASSERT |
979 static bool _dwl_initialized; |
979 static bool _dwl_initialized; |
980 #endif // #ifdef ASSERT |
980 #endif // #ifdef ASSERT |
981 |
981 |
982 |
|
983 public: |
982 public: |
984 static ParallelOldTracer* gc_tracer() { return &_gc_tracer; } |
983 static ParallelOldTracer* gc_tracer() { return &_gc_tracer; } |
985 |
984 |
986 private: |
985 private: |
987 |
986 |