Thanks to visit codestin.com
Credit goes to github.com

Skip to content

test that one can mutate managed Rkv instances in surprising ways#129

Merged
ncloudioj merged 1 commit intomozilla:masterfrom
mykmelez:test-mutate-managed-rkv
Sep 11, 2019
Merged

test that one can mutate managed Rkv instances in surprising ways#129
ncloudioj merged 1 commit intomozilla:masterfrom
mykmelez:test-mutate-managed-rkv

Conversation

@mykmelez
Copy link
Contributor

Because Manager stores Rkv instances as Arc<RwLock>, and RwLock has interior mutability, it's possible to replace a managed Rkv instance, resulting in surprising behavior when retrieving instances from the Manager.

This branch just demonstrates the surprising behavior of Manager when one of its mapped Rkv instances is replaced by a new instance.

@victorporof
Copy link
Contributor

Can we land this? @ncloudioj

@ncloudioj
Copy link
Member

I think so, I will check it in.

@ncloudioj ncloudioj merged commit 621567c into mozilla:master Sep 11, 2019
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.

3 participants