Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
f0a680d7
Commit
f0a680d7
authored
Jun 25, 2020
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove allocation and deallocation trace prints
parent
b42072c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
5 deletions
+0
-5
Cython/Compiler/CypclassWrapper.py
Cython/Compiler/CypclassWrapper.py
+0
-2
Cython/Utility/CyObjects.cpp
Cython/Utility/CyObjects.cpp
+0
-3
No files found.
Cython/Compiler/CypclassWrapper.py
View file @
f0a680d7
...
@@ -1041,9 +1041,7 @@ def generate_cyp_class_wrapper_definition(type, wrapper_entry, constructor_entry
...
@@ -1041,9 +1041,7 @@ def generate_cyp_class_wrapper_definition(type, wrapper_entry, constructor_entry
objstruct_cname
=
type
.
wrapper_type
.
objstruct_cname
objstruct_cname
=
type
.
wrapper_type
.
objstruct_cname
cclass_wrapper_base
=
type
.
wrapped_base_type
().
wrapper_type
cclass_wrapper_base
=
type
.
wrapped_base_type
().
wrapper_type
code
.
putln
(
"if(self) {"
)
code
.
putln
(
"if(self) {"
)
code
.
putln
(
"printf(
\
"
allocating wrapper for %s cypclass
\
\
n
\
"
);"
%
type
.
name
)
code
.
putln
(
"%s * wrapper = (%s *) ::operator new(sizeof *wrapper);"
%
(
objstruct_cname
,
objstruct_cname
))
code
.
putln
(
"%s * wrapper = (%s *) ::operator new(sizeof *wrapper);"
%
(
objstruct_cname
,
objstruct_cname
))
code
.
putln
(
"printf(
\
"
allocated wrapper object @ %p
\
\
n
\
\
n
\
"
, wrapper);"
)
code
.
putln
(
"((%s *)wrapper)->%s = self;"
%
(
cclass_wrapper_base
.
objstruct_cname
,
Naming
.
cypclass_attr_cname
))
code
.
putln
(
"((%s *)wrapper)->%s = self;"
%
(
cclass_wrapper_base
.
objstruct_cname
,
Naming
.
cypclass_attr_cname
))
code
.
putln
(
"PyObject * wrapper_as_py = (PyObject *) wrapper;"
)
code
.
putln
(
"PyObject * wrapper_as_py = (PyObject *) wrapper;"
)
code
.
putln
(
"wrapper_as_py->ob_refcnt = 0;"
)
code
.
putln
(
"wrapper_as_py->ob_refcnt = 0;"
)
...
...
Cython/Utility/CyObjects.cpp
View file @
f0a680d7
...
@@ -454,10 +454,7 @@ int RecursiveUpgradeableRWLock::trywlock() {
...
@@ -454,10 +454,7 @@ int RecursiveUpgradeableRWLock::trywlock() {
CyObject
::~
CyObject
()
{
CyObject
::~
CyObject
()
{
if
(
cy_pyobject
)
{
if
(
cy_pyobject
)
{
printf
(
"deleting wrapper object @ %p
\n
"
,
cy_pyobject
);
printf
(
"python refcount: %ld
\n
"
,
cy_pyobject
->
ob_refcnt
);
::
operator
delete
(
cy_pyobject
);
::
operator
delete
(
cy_pyobject
);
printf
(
"wrapper deleted
\n\n
"
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment