Mercurial > hg > truffle
comparison src/share/vm/utilities/taskqueue.hpp @ 1284:5f1f51edaff6
6928081: G1: rename parameters common with CMS
Summary: Rename marking stack sizing flags to be common between G1 and CMS
Reviewed-by: ysr, tonyp
author | jmasa |
---|---|
date | Wed, 24 Feb 2010 07:00:33 -0800 |
parents | 1ee412f7fec9 |
children | 2a1472c30599 |
comparison
equal
deleted
inserted
replaced
1283:1c72304f1885 | 1284:5f1f51edaff6 |
---|---|
131 } | 131 } |
132 | 132 |
133 // Maximum number of elements allowed in the queue. This is two less | 133 // Maximum number of elements allowed in the queue. This is two less |
134 // than the actual queue size, for somewhat complicated reasons. | 134 // than the actual queue size, for somewhat complicated reasons. |
135 uint max_elems() { return N - 2; } | 135 uint max_elems() { return N - 2; } |
136 | |
137 // Total size of queue. | |
138 static const uint total_size() { return N; } | |
136 }; | 139 }; |
137 | 140 |
138 template<class E> class GenericTaskQueue: public TaskQueueSuper { | 141 template<class E> class GenericTaskQueue: public TaskQueueSuper { |
139 private: | 142 private: |
140 // Slow paths for push, pop_local. (pop_global has no fast path.) | 143 // Slow paths for push, pop_local. (pop_global has no fast path.) |