bpo-37146: Allow to configure opcode cache and fix huntleaks by presetting it to 1#13789
bpo-37146: Allow to configure opcode cache and fix huntleaks by presetting it to 1#13789pablogsal wants to merge 4 commits intopython:masterfrom
Conversation
|
Tested locally: |
|
Tested also with |
Include/internal/pycore_pystate.h
Outdated
There was a problem hiding this comment.
the struct is useless, just put directly the int into _ceval_runtime_state.
There was a problem hiding this comment.
I made a struct for easy extending more stuff in the config in the future.
I will remove it
Include/internal/pycore_pystate.h
Outdated
Lib/test/libregrtest/runtest.py
Outdated
There was a problem hiding this comment.
I don't think that it matters to restore the old value. I'm not sure that sys._getopcacheminruns() is needed.
Python/pylifecycle.c
Outdated
There was a problem hiding this comment.
pleave remove this XXX. It doesn't have to be a cmdline option.
Lib/test/libregrtest/runtest.py
Outdated
There was a problem hiding this comment.
That's wrong. Only dash_R() should be modified in libregrtest/refleak.py. You must not disable the opcache in runtest.py.
There was a problem hiding this comment.
Sorry, this was supposed to reset the original value. Check out my last fixup (bd3a951),
There was a problem hiding this comment.
I think you misunderstood my comment. You must not modify this function but dash_R() function.
|
When you're done making the requested changes, leave the comment: |
|
The code object will be optimized only when Please use #13787 for 3.8b1. |
…resetting it to 1
…ks by presetting it to 1
…huntleaks by presetting it to 1
…nd fix huntleaks by presetting it to 1
|
Ok, I will close this PR then. |
Maybe keep it around, it's sounds like a good fix for post-beta1. |
https://bugs.python.org/issue37146