RFR: 8377797: Remove SA support for MethodData and the printmdo command [v3]

Coleen Phillimore coleenp at openjdk.org
Tue Feb 17 17:13:29 UTC 2026


On Fri, 13 Feb 2026 18:24:57 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> This change removes MethodData code copied into SA that's out of date for the valhalla repo.
>> 
>> Tested with tier1-3.
>
> Coleen Phillimore has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Remove the doc.

Yes, I see the output could be quite useful.  For my little hello with string concatenation program.  Not sure what the 48 is.

```------------------------------------------------------------------------
static Hello::main([Ljava/lang/String;)V
  interpreter_invocation_count:           1
  invocation_counter:                     1
  backedge_counter:                       0
  decompile_count:                        0
  mdo size: 384 bytes

   0 new 7 <Hello>
   3 dup
   4 invokespecial 9 <Hello.<init>()V>
  0    bci: 4    CounterData        count(1)
   7 astore_1
   8 getstatic 10 <java/lang/System.out:Ljava/io/PrintStream;>
  11 getstatic 16 <Hello.bar:I>
  14 getstatic 20 <Hello.var:I>
  17 invokedynamic bsm=46 23 <makeConcatWithConstants(II)Ljava/lang/String;>
  16   bci: 17   CounterData        count(0)
                return type         'java/lang/String'
  22 invokevirtual 27 <java/io/PrintStream.println(Ljava/lang/String;)V>
  48   bci: 22   VirtualCallData    count(0) entries(0)
  25 return
------------------------------------------------------------------------

-------------

PR Comment: https://git.openjdk.org/jdk/pull/29693#issuecomment-3915950281


More information about the serviceability-dev mailing list