Call makeObjectShared to normalize a shared object into a true shared object#1566
Merged
Conversation
… object Currently, only int and shared.redacted call makeObjectShared for shared objects. Although this breaks the blame log, there is a few points i would like to mention: 1. For threading, our fork for some reasons calling decrRefCount in the threads for shared.command. Although this is not used in OSS code now, it may be a issue in the future. 2. For cleanup, all shared objects's refcount should be the same. 3. For CoW, probably can reduce CoW although it is very minor. Signed-off-by: Binbin <binloveplay1314@qq.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## unstable #1566 +/- ##
============================================
- Coverage 71.45% 71.41% -0.05%
============================================
Files 122 122
Lines 66210 66207 -3
============================================
- Hits 47311 47280 -31
- Misses 18899 18927 +28
🚀 New features to boost your workflow:
|
enjoy-binbin
commented
Jan 15, 2025
Signed-off-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Binbin <binloveplay1314@qq.com>
enjoy-binbin
commented
Jun 5, 2025
zuiderkwast
reviewed
Jun 5, 2025
Signed-off-by: Binbin <binloveplay1314@qq.com>
Signed-off-by: Binbin <binloveplay1314@qq.com>
32a83f6 to
782e64a
Compare
zuiderkwast
reviewed
Jun 5, 2025
zuiderkwast
reviewed
Jun 5, 2025
Signed-off-by: Binbin <binloveplay1314@qq.com> Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
zuiderkwast
reviewed
Jun 6, 2025
Signed-off-by: Binbin <binloveplay1314@qq.com>
zuiderkwast
approved these changes
Jun 7, 2025
Signed-off-by: Binbin <binloveplay1314@qq.com>
zuiderkwast
approved these changes
Jun 7, 2025
chzhoo
pushed a commit
to chzhoo/valkey
that referenced
this pull request
Jun 12, 2025
… object (valkey-io#1566) Currently, only int and shared.redacted call makeObjectShared for shared objects. Although this breaks the blame log, there is a few points i would like to mention: 1. For threading, our fork for some reasons calling decrRefCount in the threads for shared.command. Although this is not used in OSS code now, it may be a issue in the future. 2. For cleanup, all shared objects's refcount should be the same. 3. For CoW, probably can reduce CoW although it is very minor. We decided in valkey-io#2189 to keep `extended-redis-compatibility` for now. Signed-off-by: Binbin <binloveplay1314@qq.com> Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech> Signed-off-by: chzhoo <czawyx@163.com>
shanwan1
pushed a commit
to shanwan1/valkey
that referenced
this pull request
Jun 13, 2025
… object (valkey-io#1566) Currently, only int and shared.redacted call makeObjectShared for shared objects. Although this breaks the blame log, there is a few points i would like to mention: 1. For threading, our fork for some reasons calling decrRefCount in the threads for shared.command. Although this is not used in OSS code now, it may be a issue in the future. 2. For cleanup, all shared objects's refcount should be the same. 3. For CoW, probably can reduce CoW although it is very minor. We decided in valkey-io#2189 to keep `extended-redis-compatibility` for now. Signed-off-by: Binbin <binloveplay1314@qq.com> Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech> Signed-off-by: shanwan1 <shanwan1@intel.com>
ranshid
added a commit
to ranshid/valkey
that referenced
this pull request
Mar 18, 2026
Probably added by mistake during some merge of valkey-io#1566 Signed-off-by: Ran Shidlansik <ranshid@amazon.com>
ranshid
added a commit
that referenced
this pull request
Mar 18, 2026
Probably added by mistake during some merge of #1566 Signed-off-by: Ran Shidlansik <ranshid@amazon.com>
JimB123
pushed a commit
that referenced
this pull request
Mar 19, 2026
Probably added by mistake during some merge of #1566 Signed-off-by: Ran Shidlansik <ranshid@amazon.com>
roshkhatri
pushed a commit
to roshkhatri/valkey
that referenced
this pull request
Mar 20, 2026
Probably added by mistake during some merge of valkey-io#1566 Signed-off-by: Ran Shidlansik <ranshid@amazon.com> Signed-off-by: Roshan Khatri <rvkhatri@amazon.com>
sarthakaggarwal97
pushed a commit
to sarthakaggarwal97/valkey
that referenced
this pull request
Apr 16, 2026
Probably added by mistake during some merge of valkey-io#1566 Signed-off-by: Ran Shidlansik <ranshid@amazon.com>
madolson
pushed a commit
that referenced
this pull request
Apr 27, 2026
Probably added by mistake during some merge of #1566 Signed-off-by: Ran Shidlansik <ranshid@amazon.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.
Currently, only int and shared.redacted call makeObjectShared for
shared objects.
Although this breaks the blame log, there is a few points i would
like to mention:
the threads for shared.command. Although this is not used in OSS
code now, it may be a issue in the future.
We decided in #2189 to keep
extended-redis-compatibilityfor now.