-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
gh-114058: Foundations of the Tier2 redundancy eliminator #115085
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
Changes from 14 commits
169e08d
e270364
e8a8b78
bb6137a
9b15f9e
66bfce5
3789cd9
20d087b
0f58526
c55ba14
e34a0f5
229aab0
3c8def4
649b0c7
2805755
54e2f64
dcddb2d
6e5ed12
a8b27fc
e00ec6f
b8f0af1
9a9033f
710f609
eaeb293
0bb9539
82405fa
2e31906
ed25ce0
3bf3c7d
2af5b74
cb1d5fe
5013027
1283660
d14dac6
5394cdd
0729778
35227f8
40a19f7
0a4b6be
aaeb4cd
6143256
35fff8f
2b6eff4
3b5b498
702a6fc
77e56ff
c457098
fcd31af
92b211c
1bf6ef8
ea3755f
f09e3c3
9670b23
38420c3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ extern PyObject* _PyFunction_Vectorcall( | |
|
||
#define FUNC_MAX_WATCHERS 8 | ||
|
||
#define FUNC_VERSION_CACHE_SIZE (1<<12) /* Must be a power of 2 */ | ||
#define FUNC_VERSION_CACHE_SIZE (1<<14) /* Must be a power of 2 */ | ||
There was a problem hiding this comment.
8000
Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change seems unrelated, and probably isn't the best way to fix the underlying issue. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The change was because the function cache was too small. This was causing the tracer to bail too early because it couldn't find the function when it tried to lookup the function version. In some cases, the function is actually still there, it's just no in the version cache. It's an actual problem. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It might be affecting the stats though, because this might lead more things to be executed in tier 2. I will revert it now and revisit it later. |
||
struct _py_func_state { | ||
uint32_t next_version; | ||
// Borrowed references to function objects whose | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.