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

Global scope should be initialized lazily

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u60, 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b57
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        Migrated from NASHORN-802

        There are many properties in global scope. All are initialized by default. But many properties may not be used in script file or in a session. We could lazily initialize global's properties. Getter/Setter may be added to method - but a hidden field may be initialized within getter.

          Attachments

          1. test.jfr
            1.54 MB
            Marcus Lagergren

            Issue Links

              Activity

                People

                • Assignee:
                  sundar Sundararajan Athijegannathan
                  Reporter:
                  lagergren Marcus Lagergren
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: