Now module cache isn't thread/process-safe and cannot be properly used with concurrent remote test execution - there is no synchronization between module's downloading and Put calls.
This CL puts together module's downloading and insertion into cache and prepares ground for synchronization.
With a follow-up CL I'm planning to add file-based locking per each module which is in the middle of GetAndPut call - so, it will be safe to use module cache in multi-threaded/process environment.
Details
Details
- Reviewers
clayborg
Diff Detail
Diff Detail
Event Timeline
Comment Actions
AFFECTED FILES
/lldb/trunk/source/Target/Platform.cpp /lldb/trunk/source/Utility/ModuleCache.cpp /lldb/trunk/source/Utility/ModuleCache.h
USERS
ovyalov (Author)