Skip to content

Conversation

@byrnedj
Copy link

@byrnedj byrnedj commented Nov 6, 2023

We need to synchronize on the access container lock in case another thread calls insertOrReplace.

The test case included works well if I constrain threads to two cores (i.e. numactl -C 0,1 ./allocatorTypeTest --gtest_filter=BaseAllocatorTest/0.ChainedItemParentAcquireAfterMove).

I get the following exception:

image

vinser52 and others added 4 commits October 24, 2023 06:23
The new algorithm relies on the moving bit and does not require external
synchronization. Data movement happens transparently for the client: if
the client thread attempts to get a handle for the item being moved it
will get a handle with wait context to wait till the movement is
completed.
@vinser52 vinser52 force-pushed the upstream_transparent_move branch from 807dbda to 3d73cfe Compare November 8, 2023 13:42
@byrnedj byrnedj closed this Nov 8, 2023
@byrnedj
Copy link
Author

byrnedj commented Nov 8, 2023

closing - instead use #5

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.

2 participants