hotspot/src/share/vm/utilities/taskqueue.cpp
changeset 5076 8b74a4b60b31
parent 3262 30d1c247fc25
child 5547 f4b087cbb361
--- a/hotspot/src/share/vm/utilities/taskqueue.cpp	Wed Mar 03 08:10:41 2010 -0800
+++ b/hotspot/src/share/vm/utilities/taskqueue.cpp	Wed Mar 03 14:48:26 2010 -0800
@@ -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);