Skip to content

SelfContainedMutex: move from shadow-shim-helper-rs to shadow_shmem#2567

Merged
sporksmith merged 1 commit intoshadow:mainfrom
sporksmith:move-mutex
Dec 1, 2022
Merged

SelfContainedMutex: move from shadow-shim-helper-rs to shadow_shmem#2567
sporksmith merged 1 commit intoshadow:mainfrom
sporksmith:move-mutex

Conversation

@sporksmith
Copy link
Copy Markdown
Contributor

shadow_shmem is a better home for "utility" things to work with shared memory that don't depend on the rest of Shadow.

This also lets us avoid having to compile shadow-shim-helper-rs when testing SelfContainedMutex in the loom configuration, which saves some work and lets us avoid some loom-specific workarounds in unrelated code.

Progress on #2566

@sporksmith sporksmith marked this pull request as ready for review November 28, 2022 17:08
@github-actions github-actions bot added Component: Build Build/install tools and dependencies Component: Libraries Support functions like LD_PRELOAD and logging Component: Main Composing the core Shadow executable labels Nov 28, 2022
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 28, 2022

Codecov Report

Base: 67.05% // Head: 66.95% // Decreases project coverage by -0.10% ⚠️

Coverage data is based on head (4383dad) compared to base (9f01321).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2567      +/-   ##
==========================================
- Coverage   67.05%   66.95%   -0.11%     
==========================================
  Files         195      195              
  Lines       29025    29025              
  Branches     5708     5705       -3     
==========================================
- Hits        19464    19434      -30     
- Misses       5038     5067      +29     
- Partials     4523     4524       +1     
Flag Coverage Δ
tests 66.95% <ø> (-0.11%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/lib/shadow-shim-helper-rs/src/lib.rs 75.00% <ø> (ø)
src/lib/shadow-shim-helper-rs/src/shim_shmem.rs 78.24% <ø> (ø)
src/lib/shmem/src/lib.rs 100.00% <ø> (ø)
src/lib/shmem/src/scmutex.rs 87.05% <ø> (ø)
src/lib/shmem/tests/scmutex-tests.rs 87.50% <ø> (ø)
src/main/host/host.rs 82.28% <ø> (ø)
src/main/host/descriptor/pipe.rs 67.08% <0.00%> (-12.03%) ⬇️
src/main/host/syscall/handler/fcntl.rs 45.58% <0.00%> (-4.42%) ⬇️
src/main/host/syscall/handler/unistd.rs 52.78% <0.00%> (-2.58%) ⬇️
... and 14 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

shadow_shmem is a better home for "utility" things to work with shared
memory that don't depend on the rest of Shadow.

This also lets us avoid having to compile shadow-shim-helper-rs when
testing SelfContainedMutex in the loom configuration, which saves some
work and lets us avoid some loom-specific workarounds in unrelated code.

Progress on shadow#2566
@sporksmith sporksmith merged commit 45d1ac6 into shadow:main Dec 1, 2022
@sporksmith sporksmith deleted the move-mutex branch December 1, 2022 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: Build Build/install tools and dependencies Component: Libraries Support functions like LD_PRELOAD and logging Component: Main Composing the core Shadow executable

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants