Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8255860

Clean up CDS logging related to lambda

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 16
    • None
    • hotspot
    • b24

      java -Xshare:dump may print out ".... failed" messages even during normal operations. This is confusing and should be controlled via -Xlog:cds+lambda=debug. I.e., this log is useful only if you're debugging the CDS handling of lambdas.

      [0.667s][info][cds] Loading classes to share ...
      bsi check failed
          bsi->arg_values().not_null() 1
          bsi->arg_values()->is_objArray() 0
      Bootstrap in java/util/logging/Level indy#52@CP[154] makeConcatWithConstants:(Ljava/lang/String;)Ljava/lang/String;(resolved) BSMS[2] BSM@CP[278](resolved) argc=1(resolved)
        argument indexes: {284}
        resolved BSM: java.lang.invoke.MethodHandleImpl$AsVarargsCollector
      {0x0000000410b13b08} - klass: 'java/lang/invoke/MethodHandleImpl$AsVarargsCollector'
       - ---- fields (total size 5 words):
       - 'customizationCount' 'B' @12 0
       - private final 'type' 'Ljava/lang/invoke/MethodType;' @16 a 'java/lang/invoke/MethodType'{0x00000004108c7d68} = (Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; (82118fad)
       - final 'form' 'Ljava/lang/invoke/LambdaForm;' @20 a 'java/lang/invoke/LambdaForm'{0x0000000410b14298} => a 'java/lang/invoke/MemberName'{0x0000000410b143a0} = {method} {0x00007ff505cd4a38} 'delegate' '(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;' in 'java/lang/invoke/DelegatingMethodHandle$Holder' (82162853)
       - 'asTypeCache' 'Ljava/lang/invoke/MethodHandle;' @24 NULL (0)
       - private final 'target' 'Ljava/lang/invoke/MethodHandle;' @28 a 'java/lang/invoke/DirectMethodHandle'{0x0000000410b13ae8} (8216275d)
       - private final strict 'arrayType' 'Ljava/lang/Class;' @32 a 'java/lang/Class'{0x00000004108058e0} = 'java/lang/Object'[] (82100b1c)
       - private synchronized 'asCollectorCache' 'Ljava/lang/invoke/MethodHandle;' @36 NULL (0)
        resolved arg[0]: java.lang.String
      {0x0000000410b14440} - klass: 'java/lang/String'
       - string: "Bad level "

      Also, the following logging is too verbose for the -Xlog:cds log. It should be moved to -Xlog:cds+lambda

      [2.991s][info][cds] Replaced class java/lang/invoke/BoundMethodHandle$Species_D, old: 0x8c00d25b8 new: 0x8c00d6900
      [2.992s][info][cds] Replaced class java/lang/invoke/BoundMethodHandle$Species_DL, old: 0x8c00d2bd0 new: 0x8c00d6ce0
      [2.993s][info][cds] Replaced class java/lang/invoke/BoundMethodHandle$Species_I, old: 0x8c00d2fb0 new: 0x8c00d70c0
      [2.993s][info][cds] Replaced class java/lang/invoke/BoundMethodHandle$Species_IL, old: 0x8c00d3390 new: 0x8c00d74a0
      [2.994s][info][cds] Replaced class java/lang/invoke/BoundMethodHandle$Species_LJ, old: 0x8c00b7058 new: 0x8c00d7888
      [2.995s][info][cds] Replaced class java/lang/invoke/BoundMethodHandle$Species_LL, old: 0x8c0098a10 new: 0x8c00d7c68
      [2.995s][info][cds] Replaced class java/lang/invoke/BoundMethodHandle$Species_LLL, old: 0x8c009a140 new: 0x8c00d8048
      [2.996s][info][cds] Replaced class java/lang/invoke/BoundMethodHandle$Species_LLLL, old: 0x8c00b6458 new: 0x8c00d8428
      [2.997s][info][cds] Replaced class java/lang/invoke/BoundMethodHandle$Species_LLLLL, old: 0x8c00b6838 new: 0x8c00d8808
      [2.998s][info][cds] Replaced class java/lang/invoke/BoundMethodHandle$Species_LLLLLL, old: 0x8c00b7438 new: 0x8c00d8be8
      [2.999s][info][cds] Replaced class java/lang/invoke/BoundMethodHandle$Species_LLLLLLL, old: 0x8c00b7818 new: 0x8c00d8fc8
      [2.999s][info][cds] Replaced class java/lang/invoke/BoundMethodHandle$Species_LLLLLLLL, old: 0x8c00b9098 new: 0x8c00d93a8
      [3.000s][info][cds] Replaced class java/lang/invoke/BoundMethodHandle$Species_LLLLLLLLL, old: 0x8c00b9478 new: 0x8c00d9788
      [3.001s][info][cds] Replaced class java/lang/invoke/BoundMethodHandle$Species_LLLLLLLLLL, old: 0x8c00b9858 new: 0x8c00d9b68
      [3.002s][info][cds] Replaced class java/lang/invoke/BoundMethodHandle$Species_LLLLLLLLLLL, old: 0x8c00b9c38 new: 0x8c00d9f48
      [3.003s][info][cds] Replaced class java/lang/invoke/BoundMethodHandle$Species_LLLLLLLLLLLL, old: 0x8c00ba018 new: 0x8c00da328
      [3.004s][info][cds] Replaced class java/lang/invoke/BoundMethodHandle$Species_LLLLLLLLLLLLL, old: 0x8c00ba3f8 new: 0x8c00da708
      [3.007s][info][cds] Replaced class java/lang/invoke/DelegatingMethodHandle$Holder, old: 0x8c0016638 new: 0x8c00daae8
      [3.011s][info][cds] Replaced class java/lang/invoke/DirectMethodHandle$Holder, old: 0x8c003a4f8 new: 0x8c00dad08
      [3.012s][info][cds] Replaced class java/lang/invoke/Invokers$Holder, old: 0x8c0011480 new: 0x8c00daf28
      [3.013s][info][cds] Replaced class java/lang/invoke/LambdaForm$Holder, old: 0x8c003b938 new: 0x8c00db148

            iklam Ioi Lam
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: