[Bug 241848] lib/googletest/gtest/tests: gmock-matchers_test.cc requires a pathological amount of memory to compile

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Mar 11 07:06:37 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241848

Dimitry Andric <dim at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dim at FreeBSD.org

--- Comment #15 from Dimitry Andric <dim at FreeBSD.org> ---
This particular source file is indeed a rather pathological case.

On my 13.0-CURRENT test system, using clang 10.0.0-rc3 (with assertions
enabled), it takes a maxrss of 1982620, so ~1936 MiB to compile with -O2.

Gcc 9.2.0 from ports fares even worse, it takes about 20% more time to compile,
and a maxrss of 2684812, so ~2622 MiB.

I also tried the clang90 port, but this assertions disabled, and this takes a
maxrss of 1755320, so ~1714 MiB.

For now, my advice would be to compile this file with -O1, or even -O0, as it
seems to be an internal test for googletest itself, and not something that we
actively need to have heavily optimized.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list