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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 22
    • 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.

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

              Created:
              Updated: