--- old/src/share/vm/runtime/vmThread.cpp 2013-04-09 18:40:42.000000000 -0400 +++ new/src/share/vm/runtime/vmThread.cpp 2013-04-09 18:40:42.000000000 -0400 @@ -123,7 +123,7 @@ _queue[prio]->set_next(_queue[prio]); _queue[prio]->set_prev(_queue[prio]); assert(queue_empty(prio), "drain corrupted queue"); -#ifdef DEBUG +#ifdef ASSERT int len = 0; VM_Operation* cur; for(cur = r; cur != NULL; cur=cur->next()) len++;