This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Improve memory usage by freeing CTF types (NFC)
ClosedPublic

Authored by JDevlieghere on Jul 29 2023, 10:30 PM.

Details

Summary

Improve memory usage by reducing the lifetime of CTF types. Once a CTF type has been converted to a (complete) LLDB type, there's no need to keep it in memory anymore. For most types, we can free them right after creating the corresponding LLDB types. The only exception is record types, which are only completed lazily.

This patch also adds LLVM RTTI support to CTF type. This was suggested in D156498 but with just one caller that didn't seem worth it yet. This patch introduced a second call site which tipped the scales.

Diff Detail

Event Timeline

JDevlieghere created this revision.Jul 29 2023, 10:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 29 2023, 10:30 PM
This revision is now accepted and ready to land.Jul 31 2023, 2:34 AM
This revision was landed with ongoing or failed builds.Jul 31 2023, 9:48 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 31 2023, 9:48 AM