8007987: ciConstantPoolCache::_keys should be array of 32bit int
The type of ciConstantPoolCache::_keys is changed to int which is sufficient to store the 2 byte constant pool indices. Reviewed-by: twisti, coleenp
This commit is contained in:
parent
b4d4c8a392
commit
d929c9ead8
@ -38,7 +38,7 @@ ciConstantPoolCache::ciConstantPoolCache(Arena* arena,
|
|||||||
int expected_size) {
|
int expected_size) {
|
||||||
_elements =
|
_elements =
|
||||||
new (arena) GrowableArray<void*>(arena, expected_size, 0, 0);
|
new (arena) GrowableArray<void*>(arena, expected_size, 0, 0);
|
||||||
_keys = new (arena) GrowableArray<intptr_t>(arena, expected_size, 0, 0);
|
_keys = new (arena) GrowableArray<int>(arena, expected_size, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
// Usage note: this klass has nothing to do with ConstantPoolCache*.
|
// Usage note: this klass has nothing to do with ConstantPoolCache*.
|
||||||
class ciConstantPoolCache : public ResourceObj {
|
class ciConstantPoolCache : public ResourceObj {
|
||||||
private:
|
private:
|
||||||
GrowableArray<intptr_t>* _keys;
|
GrowableArray<int>* _keys;
|
||||||
GrowableArray<void*>* _elements;
|
GrowableArray<void*>* _elements;
|
||||||
|
|
||||||
int find(int index);
|
int find(int index);
|
||||||
|
Loading…
Reference in New Issue
Block a user