7 Commits

Author SHA1 Message Date
Steven Wu
f7d32078e5
[CAS] Add OnDiskCASLogger to help logging/debugging CAS (#174462)
Adds a CAS logging interface to track mutations of the CAS and action
cache database files. This is designed to aid in the debugging of
data corruption and other issues with the low-level on-disk
representation.

To enable logging, set the environment variable LLVM_CAS_LOG to 1 or 2.
Level 2 includes logging of all allocations inside the index, action
cache, and datapool, which increases the overhead. The log file is
placed inside the top-level directory of the unified cache. For now it
is a human-readable textual format with one line per entry.
2026-01-16 09:48:41 -08:00
Kazu Hirata
b82baf0f5b
[llvm] Remove redundant control flow statements (NFC) (#163509) 2025-10-15 06:54:30 -07:00
Steven Wu
f23c0e6f55
[CAS] Fix #161548 for broken build (#162116)
Followup to fix the broken configuraiton.
2025-10-06 09:42:12 -07:00
Steven Wu
c52de9ab48
[CAS] Rename OnDiskTrieRawHashMap::pointer -> OnDiskPtr. NFC (#161548)
Rename the ondisk pointer type in OnDiskTrieRawHashMap to match
OnDiskDataAllocator. NFC.
2025-10-06 16:35:20 +00:00
Simon Pilgrim
8c2cece14d
Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFC. (#161496) 2025-10-01 10:06:36 +00:00
Steven Wu
9df1099ba7
[CAS] Fix a build failure on 32 bit system from #114100 (#161268)
Fix a build failure on 32 bit system that caused by a warning of
narrowing `uint64_t` to `size_t`.
2025-09-29 20:29:29 +00:00
Steven Wu
2936a2c882
[CAS] Add OnDiskTrieRawHashMap (#114100)
Add OnDiskTrieRawHashMap. This is a on-disk persistent hash map that
uses a Trie data structure that is similar to TrieRawHashMap.
OnDiskTrieRawHashMap is thread safe and process safe. It is mostly lock
free, except it internally coordinates cross process creation and
closing using file lock.
2025-09-29 12:47:52 -07:00