# HG changeset patch # User goetz # Date 1433863658 -7200 # Node ID c970421458358e68cd910cbdc8161c750361b321 # Parent 758cc95296c16164f368ebb0c9b71e8eb7e590cf 8086073: Fix PrintStubCode for empty StubCodeGenerator. Reviewed-by: kvn, lfoltan diff --git a/src/share/vm/runtime/stubCodeGenerator.cpp b/src/share/vm/runtime/stubCodeGenerator.cpp --- a/src/share/vm/runtime/stubCodeGenerator.cpp +++ b/src/share/vm/runtime/stubCodeGenerator.cpp @@ -96,7 +96,7 @@ 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++) {