-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
bpo-28787: Fix out of tree --with-dtrace builds #135
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to be your first contribution, please add yourself to Misc/ACKS ;-)
Makefile.pre.in
Outdated
@@ -880,6 +880,7 @@ Python/frozen.o: Python/importlib.h Python/importlib_external.h | |||
# follow our naming conventions. dtrace(1) uses the output filename to generate | |||
# an include guard, so we can't use a pipeline to transform its output. | |||
Include/pydtrace_probes.h: $(srcdir)/Include/pydtrace.d | |||
@$(MKDIR_P) Include |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove @, I like to see what is done.
Please rebase also your change. |
845b707
to
fea9af6
Compare
I merged your change, thanks @stratakis. Would you mind to backport the change? Only 3.6 is needed according to http://bugs.python.org/issue28787 I used the following commands. Without the change, make fails. With the fix, make works as expected.
|
* bpo-28787: Fix out of tree --with-dtrace builds * Unsilence directory creation * Add Misc/NEWS and Misc/ACKS entries. (cherry picked from commit f6eae5b)
This commit reveals a reference leak. See issue python#135, stackless-dev#135
Fix several problems related with slp_prepare_slots(): - set Py_TPFLAGS_HAVE_STACKLESS_EXTENSION in slp_prepare_slots(). - for heap types free the allocated buffer in tp_dealloc - Allocate the memory from the object domain, because the blocks are small (about 74 bytes).
Fix several problems related with slp_prepare_slots(): - set Py_TPFLAGS_HAVE_STACKLESS_EXTENSION in slp_prepare_slots(). - for heap types free the allocated buffer in tp_dealloc - Allocate the memory from the object domain, because the blocks are small (about 74 bytes). (cherry picked from commit e217840)
Issue reported at: https://bugs.python.org/issue28787
This was observed after DTrace and Systemtap support was introduced for Python 3.6.0: https://bugs.python.org/issue21590