https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100812

            Bug ID: 100812
           Summary: [10 Regression] lto1-wpa memory hog building openjdk
                    trunk
           Product: gcc
           Version: 10.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at debian dot org
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

openjdk trunk was building ok with lto (at least the 17+19 snapshot), however
with the 17+24 snapshot, one lto1-wpa process is eating up memory to 200GB and
beyond (linking libjvm.so).  seen with the gcc-10 branch.  The 17+24 snapshot
builds ok with the gcc-11 branch.

openjdk is configured with

./configure \
  --with-jvm-variants=server \
  --with-boot-jdk=/usr/lib/jvm/java-17-openjdk-amd64 \
  --disable-precompiled-headers --with-jvm-features=zgc \
  --with-extra-cflags='-flto=auto -ffat-lto-objects' \
  --with-extra-cxxflags='-flto=auto -ffat-lto-objects' \
  --with-extra-ldflags='-flto=auto' \
  --disable-warnings-as-errors \
  --with-debug-level=release \
  --with-native-debug-symbols=internal \
  --enable-unlimited-crypto \
  --disable-javac-server \
  --with-stdc++lib=dynamic

sources taken from
https://github.com/openjdk/jdk/releases

Reply via email to