RFR: 8292699: Improve printing of classes in native debugger [v7]
Coleen Phillimore
coleenp at openjdk.org
Mon Oct 24 18:17:17 UTC 2022
On Thu, 22 Sep 2022 18:13:39 GMT, Ioi Lam <iklam at openjdk.org> wrote:
>> src/hotspot/share/interpreter/bytecodeTracer.cpp line 434:
>>
>>> 432: // TODO: print info for tag.is_dynamic_constant()
>>> 433: }
>>> 434: }
>>
>> This should be a function in ConstantPool::print()
>
> This block of code works on an `indy_index`, which is stored only inside the bytecode stream (it's the rewritten index of the [invokedynamic bytecode](https://docs.oracle.com/javase/specs/jvms/se17/html/jvms-6.html#jvms-6.5.invokedynamic). `indy_index` is not store anywhere inside the `ConstantPool`, so I can't find a good place to print this info in the printing functions of `ConstantPool`.
>
> Note that you can have multiple `invokedynamic` bytecodes that use the same `JVM_CONSTANT_InvokeDynamic` entry in a `ConstantPool`, resulting in a different `indy_index` for each call site. Therefore, this per-callsite information cannot be printed as part of the `JVM_CONSTANT_InvokeDynamic` entry
ok
-------------
PR: https://git.openjdk.org/jdk/pull/9957
More information about the hotspot-dev
mailing list