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

RegisterImpl declarations take up too much space

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.1
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      hopper
    • CPU:
      sparc
    • OS:
      solaris_8

      Description

      Currently the way we declare Registers uses up a lot of space. The
      definition:

      const Register noreg = as_Register(-1);

      results in a private definition of noreg in every file that sees it
      plus a static construtor call to initialize it. Since sparc has a lot
      of registers and register_<arch>.hpp is seen by almost all files, roughly 220, this results in a lot wasted space. There are about 125 registers declared in total, including the ones used by the interpreter, which total about 125 * 220 * 4 = 110k of local definitions of Register. In addition everyone of these has a static constructor that is run at library load time. The code for these totals roughly 120k.
      ###@###.### 2002-02-25

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                never Tom Rodriguez
                Reporter:
                never Tom Rodriguez
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: