Skip to content

Question: how is the compilation order reported? #406

@algomaster99

Description

@algomaster99

hotspot.small.1.log

Hello! I have a question regarding how the compilation order is reported. The tool UI shows:

Image

However, nmethod compile_id=''is forjava.lang.Object <init> ()V`

Full XML tag
<writer thread='163103'/>
<nmethod compile_id='1' compiler='c1' level='3' entry='0x000071ba5d4001a0' size='760' address='0x000071ba5d400010' relocation_offset='352' insts_offset='400' stub_offset='624' scopes_data_offset='688' scopes_pcs_offset='704' dependencies_offset='752' metadata_offset='672' method='java.lang.Object &lt;init&gt; ()V' bytes='1' count='262' iicount='262' stamp='0,054'/>

But based on the screenshot above, java.lang.String isLatin1 is the first class compiled and this has an ID 4.

Full XML tag
<writer thread='163103'/>
<nmethod compile_id='4' compiler='c1' level='3' entry='0x000071ba5d400ea0' size='848' address='0x000071ba5d400d10' relocation_offset='352' insts_offset='400' stub_offset='720' scopes_data_offset='776' scopes_pcs_offset='792' dependencies_offset='840' metadata_offset='768' method='java.lang.String isLatin1 ()Z' bytes='19' count='451' iicount='451' stamp='0,067'/>

I assumed the compilation order is for a specific thread but that also does not seem to be the case because the first class compiled in thread 163103 is java.lang.String hashCode.

Full XML tag
<writer thread='163103'/>
<nmethod compile_id='2' compiler='c1' level='3' entry='0x000071ba5d400560' size='1480' address='0x000071ba5d400390' relocation_offset='352' insts_offset='464' stub_offset='1232' scopes_data_offset='1328' scopes_pcs_offset='1376' dependencies_offset='1472' metadata_offset='1312' method='java.lang.String hashCode ()I' bytes='60' count='307' iicount='307' stamp='0,060'/>

How exactly is the log being parsed to show the compilation order?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions