mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 09:34:38 +02:00
8308655: Narrow types of ConstantPool and ConstMethod returns
Reviewed-by: fparain, matsaave
This commit is contained in:
parent
5a0a238f67
commit
2599ada152
31 changed files with 162 additions and 161 deletions
|
@ -2511,7 +2511,9 @@ void InstanceKlass::metaspace_pointers_do(MetaspaceClosure* it) {
|
|||
if (itable_length() > 0) {
|
||||
itableOffsetEntry* ioe = (itableOffsetEntry*)start_of_itable();
|
||||
int method_table_offset_in_words = ioe->offset()/wordSize;
|
||||
int nof_interfaces = (method_table_offset_in_words - itable_offset_in_words())
|
||||
int itable_offset_in_words = (int)(start_of_itable() - (intptr_t*)this);
|
||||
|
||||
int nof_interfaces = (method_table_offset_in_words - itable_offset_in_words)
|
||||
/ itableOffsetEntry::size();
|
||||
|
||||
for (int i = 0; i < nof_interfaces; i ++, ioe ++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue