src/share/vm/compiler/compileBroker.cpp

Print this page
rev 6359 : 6311046: -Xcheck:jni should support checking of GetPrimitiveArrayCritical
Summary: Unified memory bounds checking, introducted to checked JNI.
Reviewed-by: rbackman

*** 592,604 **** } void CompileQueue::delete_all() { assert(lock()->owned_by_self(), "must own lock"); if (_first != NULL) { ! for (CompileTask* task = _first; task != NULL; task = task->next()) { ! delete task; ! } _first = NULL; } } // ------------------------------------------------------------------ --- 592,607 ---- } void CompileQueue::delete_all() { assert(lock()->owned_by_self(), "must own lock"); if (_first != NULL) { ! CompileTask* task = _first; ! do { ! CompileTask* delete_task = task; ! task = task->next(); ! delete delete_task; ! } while (task != NULL); _first = NULL; } } // ------------------------------------------------------------------