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.
Details
Details
Diff Detail
Diff Detail
Event Timeline
source/Host/windows/FileSystem.cpp | ||
---|---|---|
130 | GENERIC_READ is too strong if all you want to do is call GetFileInformationByHandle. I think all you need is FILE_READ_ATTRIBUTES. Can you try with FILE_READ_ATTRIBUTES and see if GetFileInformationByHandle succeeds? If so, just use that. | |
source/Utility/ModuleCache.cpp | ||
110 | Shouldn't this be >= 2? |
Comment Actions
Files:
/lldb/trunk/include/lldb/Host/FileSystem.h /lldb/trunk/source/Host/posix/FileSystem.cpp /lldb/trunk/source/Host/windows/FileSystem.cpp /lldb/trunk/source/Utility/ModuleCache.cpp
Users:
ovyalov (Author)
GENERIC_READ is too strong if all you want to do is call GetFileInformationByHandle. I think all you need is FILE_READ_ATTRIBUTES. Can you try with FILE_READ_ATTRIBUTES and see if GetFileInformationByHandle succeeds? If so, just use that.