Reserve space for allocation prefetch only in builds that support allocation prefetching

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 9
    • Affects Version/s: 8u112, 9
    • Component/s: hotspot
    • b122

      Every thread-local allocation buffer (TLAB) contains a reserved area to accommodate allocation prefetches (i.e., to make sure that instructions performing allocation prefetch do not cause faults). The reserved area is at the end of the TLAB.

      Currently, all the reserved area is created in all builds, even though only the C2 compiler generates allocation prefetches. As a result, in builds without C2, some heap space is wasted at the end of each TLAB. Creating the reserved area also causes problems for internal testing of the AllocatePrefetchLines/AllocateInstancePrefetchLines command-line flags.

            Assignee:
            Zoltan Majo (Inactive)
            Reporter:
            Zoltan Majo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: