< prev index next >
src/share/vm/runtime/stubCodeGenerator.cpp
Print this page
rev 8500 : 8086073: Fix PrintStubCode for empty StubCodeGenerator.
Reviewed-by: kvn, lfoltan
@@ -94,11 +94,11 @@
int toprint_len = 0;
for (StubCodeDesc* cdesc = _last_stub; cdesc != NULL; cdesc = cdesc->_next) {
toprint[toprint_len++] = cdesc;
if (cdesc == _first_stub) { saw_first = true; break; }
}
- assert(saw_first, "must get both first & last");
+ assert(toprint_len == 0 || saw_first, "must get both first & last");
// Print in reverse order:
qsort(toprint, toprint_len, sizeof(toprint[0]), compare_cdesc);
for (int i = 0; i < toprint_len; i++) {
StubCodeDesc* cdesc = toprint[i];
cdesc->print();
< prev index next >