-
Notifications
You must be signed in to change notification settings - Fork 141
Hold the GIL when incrementing None's refcount to prevent race conditions when there are multiple Python threads #2334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
8d88aaa
Add a function to test if object is py none
1e6b92c
Fix double mutex unlock
60f4da4
Get rid of of gil safe py none
06fe25e
Refine taking of the spinlock
5393e2c
Address review comments
vasil-pashov 7818c95
Create a single function incrementing None's refcount
vasil-pashov 62cc298
Keep None refcount in python handler data
vasil-pashov e4f46d8
Fix C++ unit tests
vasil-pashov 97670c9
Add stress test for None/NaN multithreaded handling
vasil-pashov 4e7f3ec
Use std::fill_n instead of a for loop
vasil-pashov 7d3c580
Merge branch 'master' into vasil.pashov/hold-gil-on-none-incref
vasil-pashov 5680e2e
Move fill_with_none in python_util
vasil-pashov 5b6b145
Do not increase None's refcount after calling python_util::fill_with_…
vasil-pashov 4b6fa31
Address review comments
vasil-pashov e896668
Use np.nan instead of np.NaN as the latter is deprecated
vasil-pashov a1e6d15
Do not use np.asfortranarray in None stress test
vasil-pashov 2c5ee55
Bring back asfortranarray for none GIL stresstest
vasil-pashov e443396
Change None GIL sterss test column generation
vasil-pashov 8646f9d
Add read_batch stress test for Py_None GIL handling
vasil-pashov a337d12
Add test for QueryBuilder reads because it's a different codepath for…
vasil-pashov 2d03dba
Extend unit tests for GIL handling of None refcounts to library tool …
vasil-pashov a72f055
Do not throw exception from PythonHandlerData's destructor. Move the
vasil-pashov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,6 @@ | |
|
||
#pragma once | ||
|
||
#include <cstdint> | ||
|
||
namespace arcticdb { | ||
enum class OutputFormat : uint8_t { | ||
NATIVE, | ||
|
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.