RFR: 8183151: DCmd Compiler.codelist should print all compiled methods

Christian Thalinger cthalinger at twitter.com
Wed Jun 28 19:38:05 UTC 2017

https://bugs.openjdk.java.net/browse/JDK-8183151 <https://bugs.openjdk.java.net/browse/JDK-8183151>

Right now Compiler.codelist only prints JIT compiled methods (nmethods) but it should print AOT compiled methods as well. 

The patch also adds an additional column to show the "state" of the method. It can be important to know if the method is active or not. 

473 4 0 java.util.zip.ZipFile$Source.initCEN(I)V [0x0000000109fe0190, 0x0000000109fe0440 - 0x0000000109fe27f8] 
499 4 2 java.util.Collections$UnmodifiableCollection$1.next()Ljava/lang/Object; [0x0000000109fe3790, 0x0000000109fe3960 - 0x0000000109fe3b00] 

AOT compiled code shows up with a compile level of -1: 

819 -1 0 jdk.vm.ci.code.RegisterValue.<init>(Ljdk/vm/ci/meta/ValueKind;Ljdk/vm/ci/code/Register;)V [0x00007fe3e2623af0, 0x000000010df35468 - 0x000000010df35760] 
820 -1 0 jdk.vm.ci.code.RegisterValue.getRegister()Ljdk/vm/ci/code/Register; [0x00007fe3e2623c00, 0x000000010df357e8 - 0x000000010df35868] 
821 -1 0 jdk.vm.ci.code.RegisterValue.equals(Ljava/lang/Object;)Z [0x00007fe3e2623d10, 0x000000010df358e8 - 0x000000010df35b08] 

Patch is attached to the ticket.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20170628/1365a4c7/attachment.html>

More information about the hotspot-compiler-dev mailing list