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:
Tobias Hartmann 2014-07-01 09:02:45 +02:00
parent b4d4c8a392
commit d929c9ead8
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ ciConstantPoolCache::ciConstantPoolCache(Arena* arena,
int expected_size) {
_elements =
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);
}
// ------------------------------------------------------------------

View File

@ -35,7 +35,7 @@
// Usage note: this klass has nothing to do with ConstantPoolCache*.
class ciConstantPoolCache : public ResourceObj {
private:
GrowableArray<intptr_t>* _keys;
GrowableArray<int>* _keys;
GrowableArray<void*>* _elements;
int find(int index);