Need vm_max_address() in os to abstract away the extent of user addressable space

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 22
    • Component/s: hotspot

      We need a reliable, platform-independent way to find out the extent of the user-mappable address space. This is needed e.g. in the aslr-aware new class space reservation. At the moment, we assume either 128 TB or 2^48, but we may run on big and small machines. Aarch64, for instance, can have either 39, 48 or 52 bit address space.

      ZGC already probes the extent of the address space. Maybe that technique could be re-used for the general hotspot.

      Note that we already have an abstraction for the lower limit of the address space - os::vm_min_address(), a new implementation should have the same form.

            Assignee:
            Unassigned
            Reporter:
            Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: