Skip to content

score/com: lib memory shared migration phase 1#246

Open
KrishaDeshkool wants to merge 6 commits intoeclipse-score:mainfrom
KrishaDeshkool:memory-migration-v2
Open

score/com: lib memory shared migration phase 1#246
KrishaDeshkool wants to merge 6 commits intoeclipse-score:mainfrom
KrishaDeshkool:memory-migration-v2

Conversation

@KrishaDeshkool
Copy link
Copy Markdown
Contributor

No description provided.

@KrishaDeshkool KrishaDeshkool force-pushed the memory-migration-v2 branch 6 times, most recently from 6f7f39d to 13d80dc Compare March 26, 2026 16:23
@KrishaDeshkool KrishaDeshkool force-pushed the memory-migration-v2 branch 2 times, most recently from aeb6cc6 to 6195c55 Compare March 27, 2026 10:09
@KrishaDeshkool
Copy link
Copy Markdown
Contributor Author

This PR links against the baselibs PR hash that has the changes this PR needs,
once that PR is merged we can point to the release hash in first commit

@KrishaDeshkool KrishaDeshkool changed the title Memory migration v2 com: lib memory shared migration phase 1 Mar 27, 2026
@KrishaDeshkool KrishaDeshkool changed the title com: lib memory shared migration phase 1 score/com: lib memory shared migration phase 1 Mar 27, 2026
@KrishaDeshkool KrishaDeshkool force-pushed the memory-migration-v2 branch 4 times, most recently from 093d2f3 to 18813e6 Compare March 27, 2026 13:52
Add boost.container to MODULE.bazel deps required by the local score/memory
library. Configure .bazelrc to use the local baselibs checkout as an override
so the in-tree score/memory sources are resolved instead of the registry copy.
Add the score/memory shared-memory library sources, headers, tests, and design
documentation copied from the baselibs repository. This brings the library
in-tree so communication can depend on it directly without an external
Bazel module reference.
Define cc_library, cc_test, and related Bazel targets for the score/memory
shared-memory library that was copied in-tree. All targets use the repo-local
label //score/memory/... rather than the external @score_baselibs//score/memory/...
Replace all @score_baselibs//score/memory/... dependency labels in
score/mw/com BUILD files with the in-tree //score/memory/... equivalents
now that the library has been copied locally.
Update #include paths and namespace references in score/mw/com sources to
reflect that AtomicIndirector and related types are now accessed via
concurrency::atomic:: rather than memory::shared:: following the in-tree
copy of the score/memory library.
Primitive targets (offset_ptr, managed_memory_resource, vector, map,
string, etc.) are aliases to baselibs — their tests belong in baselibs
not here. Having test source files compiled locally against aliased
headers causes toolchain mismatches (e.g. string_test fails with tsan/clang
because the header comes from baselibs compiled with gcc).

Removed 13 test targets and source files. Kept only tests for heavy
targets that communication owns (factory, resource, lock_file, etc.).
@KrishaDeshkool KrishaDeshkool marked this pull request as ready for review March 27, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant