mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-07 17:08:53 +00:00
8151368: SA: Unexpected ArithmeticException in CompactHashTable
Add missed null check Reviewed-by: iklam, dsamersoff
This commit is contained in:
parent
33db96b04e
commit
c5eaaffcca
@ -81,6 +81,12 @@ public class CompactHashTable extends VMObject {
|
||||
}
|
||||
|
||||
public Symbol probe(byte[] name, long hash) {
|
||||
|
||||
if (bucketCount() == 0) {
|
||||
// The table is invalid, so don't try to lookup
|
||||
return null;
|
||||
}
|
||||
|
||||
long symOffset;
|
||||
Symbol sym;
|
||||
Address baseAddress = baseAddressField.getValue(addr);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user