[Lldb-commits] [PATCH] D12971: Remove unused modules from module cache

Oleksiy Vyalov via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 18 10:10:05 PDT 2015

ovyalov created this revision.
ovyalov added reviewers: clayborg, zturner.
ovyalov added a subscriber: lldb-commits.

When putting a new module into module cache sysroot folder may contain existing hard link for an existing module with the same name but different build-id. 
Use hard link counter to find out whether anybody else references an old module - if not, we can proceed with deleting unused module directory from $platform/.cache.
Move lock file location to $platform/.lock directory so we can create/delete module's directory while holding a lock.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12971.35096.patch
Type: text/x-patch
Size: 9652 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150918/02adeb49/attachment-0001.bin>

More information about the lldb-commits mailing list