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

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 18 10:42:30 PDT 2015


Ok, lgtm then

On Fri, Sep 18, 2015 at 10:42 AM Oleksiy Vyalov <ovyalov at google.com> wrote:

> ovyalov added inline comments.
>
> ================
> Comment at: source/Host/windows/FileSystem.cpp:130
> @@ +129,3 @@
> +    HANDLE file_handle = ::CreateFile(file_spec.GetCString(),
> +                                      FILE_READ_ATTRIBUTES,
> +                                      FILE_SHARE_READ,
> ----------------
> Thanks for suggestion - it does work. Fixed.
>
> ================
> Comment at: source/Utility/ModuleCache.cpp:110
> @@ +109,3 @@
> +
> +    if (link_count > 2)  // module is referred by other hosts.
> +        return;
> ----------------
> If link counter == 2, it's okay to delete a module because in this case a
> counter includes following files: $platform/.cache/$uuid  and its sysroot
> link.
>
>
> http://reviews.llvm.org/D12971
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150918/ee8d210e/attachment.html>


More information about the lldb-commits mailing list