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

frequency based block layout

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • hs14
    • hs14
    • hotspot
    • b07
    • generic
    • generic

        The server compiler currently computes block frequencies based on branch estimates and probabilities collected from profiling data.

        The frequency data can be leveraged create a block layout that:
          - reduces the number of branches emitted
          - improves icache locality
          - rotates loops to end with a conditional branch
          - naturally moves uncommon code sequences out of line without using an arbitrary frequency cutoff

        While only modest improvement in performance should be expected, a reduction in the methods for which "spaghetti code" is emitted, should make assembly code more readable.

              rasbold Chuck Rasbold
              rasbold Chuck Rasbold
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: