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

Emulate client build on platforms with reduced virtual address space

    Details

    • Subcomponent:
    • Resolved In Build:
      b156
    • CPU:
      x86
    • OS:
      windows
    • Verification:
      Verified

      Backports

        Description

        On 32-bit Windows, a limited amount of virtual address space (typically 2-3 GB) is available to processes. Running a server VM on 32-bit Windows is, therefore, unfeasible, as C2 compilation can consume virtual memory up to 1 GB.

        Before JDK-8154209, client builds were used to execute tests on 32-bit Windows platforms. Since JDK-8154209, however, tests are executed with a server VM that causes many tests to fail on 32-bit Windows. Customers running applications on 32-bit Windows are likely to be negatively affected as well.

        The goal of this bug is to emulate a client build on 32-bit Windows platforms using a standard tiered build. More specifically, the following should be performed:
        - set TieredStopAtLevel to 1 by default (so that only C1 compilations are performed in the system)
        - adjust tiered compilation thresholds so that in the emulated client build C1 compilation happens around the same time as in a "real" client build;
        - set the size of the code cache to a value used in client builds before
        - (optional) do not start C2 compiler threads in the emulated client build
        - (optional) use ParallelGC instead of G1

        Success criteria:
        - measured memory usage with TreePostTest.java executed with -Xmx512m is < 1GB.

          Attachments

          1. #914_hs_err_pid29960.log
            41 kB
            Xiaofeng Yang
          2. #914_replay_pid29960.log
            552 kB
            Xiaofeng Yang
          3. hs_err_pid24996.log
            46 kB
            Xiaofeng Yang
          4. replay_pid24996.log
            708 kB
            Xiaofeng Yang

            Issue Links

              Activity

                People

                • Assignee:
                  jcm Jamsheed C M
                  Reporter:
                  xiaofeya Xiaofeng Yang
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  20 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: