8258792: LogCompilation: remove redundant check fixed by 8257518

Reviewed-by: kvn, redestad
This commit is contained in:
Eric Caspole 2021-01-08 14:18:21 +00:00
parent 697bf7ab51
commit 6f7723b4ac

@ -482,9 +482,6 @@ public class LogCompilation extends DefaultHandler implements ErrorHandler {
BasicLogEvent ble = (BasicLogEvent) e;
Compilation c = ble.getCompilation();
if (c == null) {
if (!(ble instanceof NMethod)) {
throw new InternalError("only nmethods should have a null compilation; here's a " + ble.getClass());
}
continue;
}
String name = c.getMethod().getFullName();