8086073: Fix PrintStubCode for empty StubCodeGenerator

Reviewed-by: kvn, lfoltan
This commit is contained in:
Goetz Lindenmaier 2015-06-11 11:07:03 -04:00
parent 811fa6e09f
commit 2a9614af95

View File

@ -96,7 +96,7 @@ StubCodeGenerator::~StubCodeGenerator() {
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++) {