mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 04:24:49 +02:00
8151368: SA: Unexpected ArithmeticException in CompactHashTable
Add missed null check Reviewed-by: iklam, dsamersoff
This commit is contained in:
parent
33db96b04e
commit
c5eaaffcca
1 changed files with 6 additions and 0 deletions
|
@ -81,6 +81,12 @@ public class CompactHashTable extends VMObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Symbol probe(byte[] name, long hash) {
|
public Symbol probe(byte[] name, long hash) {
|
||||||
|
|
||||||
|
if (bucketCount() == 0) {
|
||||||
|
// The table is invalid, so don't try to lookup
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
long symOffset;
|
long symOffset;
|
||||||
Symbol sym;
|
Symbol sym;
|
||||||
Address baseAddress = baseAddressField.getValue(addr);
|
Address baseAddress = baseAddressField.getValue(addr);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue