Conversation
macos-latest 上源码构建依赖 blockmalloc v0.1.4 + slotsboxmalloc v0.1.5 (macOS 无预编译 ABI),再构建本仓并跑 ctest(KVSPACE_BUILD_TESTS=ON)。 Co-Authored-By: Claude Code <noreply@anthropic.com>
v0.1.5 tag 不含 macOS 的 _POSIX_C_SOURCE 修复,改为 clone main; 待 slotsboxmalloc 发含修复的新 tag 后再改回固定版本。 Co-Authored-By: Claude Code <noreply@anthropic.com>
- kvspace.c: fallocate + FALLOC_FL_PUNCH_HOLE 是 Linux 专有,用 #if defined(__linux__) 包住;macOS 跳过(仅磁盘空间回收优化) - durable_abi.c: _POSIX_C_SOURCE 199309L→200809L(macOS 才暴露 C99 的 snprintf),并加 _DARWIN_C_SOURCE 暴露 usleep 等 Darwin API Linux 行为不变(本地 cmake 构建 + 3 个 test 目标通过)。 Co-Authored-By: Claude Code <noreply@anthropic.com>
fallocate PUNCH_HOLE 为 Linux 专有;macOS 直接返回"不支持"。 Co-Authored-By: Claude Code <noreply@anthropic.com>
macOS 无 ldconfig,dyld 不自动搜 /usr/local/lib,测试可执行找不到 libblockmalloc.1.dylib。运行时补 fallback 路径。 Co-Authored-By: Claude Code <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更
给 kvspace-c 增加 macOS CI(任务:6 仓 macOS 编译通过)。
macos-latest上先源码构建依赖 blockmalloc v0.1.4 + slotsboxmalloc v0.1.5(现有ci/deps.sh只下 linux tarball),装到/usr/local,再构建本仓并跑ctest(含 shm_split / shm_resize / art_scan 三个测试)。🤖 Generated with Claude Code