mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-26 14:50:34 +00:00
Merge
This commit is contained in:
commit
085e1ad6e1
@ -303,12 +303,12 @@ public class ClassWriter implements /* imports */ ClassConstants
|
||||
case JVM_CONSTANT_MethodHandle: {
|
||||
dos.writeByte(cpConstType);
|
||||
int value = cpool.getIntAt(ci);
|
||||
short bootstrapMethodIndex = (short) extractLowShortFromInt(value);
|
||||
short nameAndTypeIndex = (short) extractHighShortFromInt(value);
|
||||
dos.writeShort(bootstrapMethodIndex);
|
||||
dos.writeShort(nameAndTypeIndex);
|
||||
if (DEBUG) debugMessage("CP[" + ci + "] = indy BSM = " +
|
||||
bootstrapMethodIndex + ", N&T = " + nameAndTypeIndex);
|
||||
byte refKind = (byte) extractLowShortFromInt(value);
|
||||
short memberIndex = (short) extractHighShortFromInt(value);
|
||||
dos.writeByte(refKind);
|
||||
dos.writeShort(memberIndex);
|
||||
if (DEBUG) debugMessage("CP[" + ci + "] = MH kind = " +
|
||||
refKind + ", mem = " + memberIndex);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@ -86,6 +86,7 @@ static inline uint64_t cast_uint64_t(size_t x)
|
||||
nonstatic_field(constantPoolOopDesc, _tags, typeArrayOop) \
|
||||
nonstatic_field(constantPoolOopDesc, _cache, constantPoolCacheOop) \
|
||||
nonstatic_field(constantPoolOopDesc, _pool_holder, klassOop) \
|
||||
nonstatic_field(constantPoolOopDesc, _operands, typeArrayOop) \
|
||||
nonstatic_field(constantPoolOopDesc, _length, int) \
|
||||
nonstatic_field(constantPoolCacheOopDesc, _length, int) \
|
||||
nonstatic_field(constantPoolCacheOopDesc, _constant_pool, constantPoolOop) \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user