Mercurial > hg > truffle
diff src/share/vm/utilities/taskqueue.cpp @ 1330:4a9cc99938e3
Merge
author | acorn |
---|---|
date | Fri, 26 Mar 2010 11:10:26 -0400 |
parents | 2a1472c30599 |
children | c18cbe5936b8 |
line wrap: on
line diff
--- a/src/share/vm/utilities/taskqueue.cpp Thu Mar 25 16:54:59 2010 -0700 +++ b/src/share/vm/utilities/taskqueue.cpp Fri Mar 26 11:10:26 2010 -0400 @@ -31,10 +31,6 @@ uint ParallelTaskTerminator::_total_peeks = 0; #endif -bool TaskQueueSuper::peek() { - return _bottom != _age.top(); -} - int TaskQueueSetSuper::randomParkAndMiller(int *seed0) { const int a = 16807; const int m = 2147483647; @@ -180,6 +176,13 @@ } } +#ifdef ASSERT +bool ObjArrayTask::is_valid() const { + return _obj != NULL && _obj->is_objArray() && _index > 0 && + _index < objArrayOop(_obj)->length(); +} +#endif // ASSERT + bool RegionTaskQueueWithOverflow::is_empty() { return (_region_queue.size() == 0) && (_overflow_stack->length() == 0);