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

Mechanism to dump generated lambda classes / log lambda code generation

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8
    • Component/s: core-libs
    • Labels:

      Description

      The lambda metafactory generates classes on the fly. For supportability and serviceability reasons, it is desirable to be able to inspect these classes. However, there is currently no way to support this.

      We can use a system property or -Xverbose: option to indicate that lambda codegen should be logged.

        Activity

        Hide
        henryjen Henry Jen added a comment -
        The following proposal will be implemented,

        jdk.internal.lambda.dumpProxyClasses=<dir>
         
        If this system property is set, and the directory exists and is writable, class files will be created in this directory when the lambda metafactory generates a class. If the property is set, but the directory doesn't exist or not writable, proper error message will be shown in system.err and the process should continue execution as the property is not set.
        Show
        henryjen Henry Jen added a comment - The following proposal will be implemented, jdk.internal.lambda.dumpProxyClasses=<dir>   If this system property is set, and the directory exists and is writable, class files will be created in this directory when the lambda metafactory generates a class. If the property is set, but the directory doesn't exist or not writable, proper error message will be shown in system.err and the process should continue execution as the property is not set.
        Hide
        hgupdate HG Updates added a comment -
        URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/c070001c4f60
        User: henryjen
        Date: 2013-10-09 17:01:05 +0000
        Show
        hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/c070001c4f60 User: henryjen Date: 2013-10-09 17:01:05 +0000
        Hide
        hgupdate HG Updates added a comment -
        URL: http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/c070001c4f60
        User: lana
        Date: 2013-10-22 17:23:08 +0000
        Show
        hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/c070001c4f60 User: lana Date: 2013-10-22 17:23:08 +0000

          People

          • Assignee:
            henryjen Henry Jen
            Reporter:
            briangoetz Brian Goetz
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: