Skip to content

Clang memory usage is massive when invoking multiple TUs #44168

@erichkeane

Description

@erichkeane
Bugzilla Link 44823
Resolution FIXED
Resolved on Feb 13, 2020 02:07
Version trunk
OS Windows NT
Blocks #43900
CC @thebrandre,@topperc,@zmodem,@hfinkel,@RKSimon,@nico,@zygoloid,@rnk,@rgal

Extended Description

After this patch: https://reviews.llvm.org/D69825

multiple TUs cause really high memory usage. This is because each invocation of the CC1Command isn't cleaning up after itself thanks to -disable-free. I believe that in cases where there will be more than 1 CC1 invocation we need to disable the driver's addition of the disable-free flag for all but the last CC1 invocation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions