[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:41:56 PDT 2015
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
More information about the lldb-commits
mailing list