RFR (XS) 8144853: Print the names of callees in PrintAssembly/PrintInterprete

Vladimir Ivanov vladimir.x.ivanov at oracle.com
Mon Dec 7 18:58:51 UTC 2015


Ioi,

Nice improvement!

Why don't you print "{runtime_call os::breakpoint()}" for 
-XX:+PrintAssemble instead? It looks more natural w.r.t. current format.

Best regards,
Vladimir Ivanov

On 12/7/15 9:18 PM, Ioi Lam wrote:
> Please review a very small fix:
>
> http://cr.openjdk.java.net/~iklam/jdk9/8144853-print-interpreter-callee-names/
>
>
> Bug: Print the names of callees in PrintAssembly/PrintInterprete
>
>      https://bugs.openjdk.java.net/browse/JDK-8144853
>
> Summary of fix:
>
>      In -XX:+PrintAssembly and -XX:+PrintInterpreter, sometimes only
>      the address of a callee is printed, and the name is missing.
>
>      The fix is to use os::dll_address_to_function_name() to find the
>      names of such functions and print them out if possible.
>
>      EXAMPLES:
>      -XX:+PrintInterpreter:
>      0x00007f1b018447c3: callq 0x00007f1b19b9bba0 =
> InterpreterRuntime::newarray(JavaThread*, BasicType, int)
>
>      -XX:+PrintAssembly
>      <....>
>      0x00007f75d87b9629: xchg %ax,%ax
>      0x00007f75d87b962b: callq 0x00007f75d0c11b60 ;
> ImmutableOopMap{rbp=Oop }
>                                                    ;*iflt {reexecute=1
> rethrow=0 return_oop=0}
>                                                    ; -
> java.lang.StringLatin1::charAt at 1 (line 43)
>                                                    ; {runtime_call
> UncommonTrapBlob}
>      0x00007f75d87b9630: callq 0x00007f75e8e41370 = os::breakpoint()
>                                                    ;*iflt {reexecute=0
> rethrow=0 return_oop=0}
>                                                    ; -
> java.lang.StringLatin1::charAt at 1 (line 43)
>                                                    ; {runtime_call}
>
>
> TESTS:
>      RBT hotspot/test/:hotspot_all (this includes tests cases with
> -XX:+PrintAssembly)
>
> Thanks
> - Ioi


More information about the hotspot-dev mailing list