Compare commits

...
Author SHA1 Message Date
Claude b1ceb8f94f Bump version to 2.82.1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EfWkLhwEvKQoNGVPsLGehj
2026-09-26 17:00:32 +00:00
Claude 6e78110000 Make memfile offset atomic so checkdisk() can read it from other threads
checkdisk() is called from the parsing threads and sums the write
positions of every reader. The geometry/index/vertex/node positions were
already std::atomic, but memfile::off (the string pool and tree sizes)
was a plain size_t that the owning thread updates in memfile_write(),
which ThreadSanitizer reports as a data race.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EfWkLhwEvKQoNGVPsLGehj
2026-09-26 17:00:11 +00:00
3 changed files with 8 additions and 2 deletions
+5
View File
@@ -1,3 +1,8 @@
# 2.82.1
* Fix a data race in the disk-space check, which read the string pool sizes
of other reader threads while they were being written.
# 2.82.0
* Fix corruption of a JSON array when a non-final element was removed from it.
+2 -1
View File
@@ -10,7 +10,8 @@ struct memfile {
std::string map;
unsigned long tree = 0;
FILE *fp = NULL;
size_t off = 0;
// Read by checkdisk() from other threads while the owning reader thread appends
std::atomic<size_t> off{0};
};
struct memfile *memfile_open(int fd);
+1 -1
View File
@@ -1,6 +1,6 @@
#ifndef VERSION_HPP
#define VERSION_HPP
#define VERSION "v2.82.0"
#define VERSION "v2.82.1"
#endif