Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
a7c14c25
Commit
a7c14c25
authored
Nov 09, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
35191c8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
26 deletions
+1
-26
bigfile/_bigfile.c
bigfile/_bigfile.c
+1
-26
No files found.
bigfile/_bigfile.c
View file @
a7c14c25
...
...
@@ -199,15 +199,8 @@ static int
pyvma_traverse
(
PyObject
*
pyvma0
,
visitproc
visit
,
void
*
arg
)
{
PyVMA
*
pyvma
=
container_of
(
pyvma0
,
PyVMA
,
pyobj
);
#if 0
VMA *vma = &pyvma->vma;
BigFileH *fileh = vma->fileh;
if (fileh) {
PyBigFileH *pyfileh = container_of(fileh, PyBigFileH, fileh);
Py_VISIT(&pyfileh->pyobj);
}
#endif
/* NOTE don't traverse vma->fileh (see pyvma_clear for details) */
Py_VISIT
(
pyvma
->
pyuser
);
return
0
;
...
...
@@ -224,24 +217,6 @@ pyvma_clear(PyObject *pyvma0)
* would break with BUG asserting that there is no fileh mappings left.
* Protect py-level users from that. */
#if 0
VMA *vma = &pyvma->vma;
BigFileH *fileh = vma->fileh;
/* pyvma->fileh indicates whether vma was yet created (via fileh_mmap()) or not */
if (fileh) {
PyBigFileH *pyfileh = container_of(fileh, PyBigFileH, fileh);
/* NOTE calling vma_unmap in tp_clear - it is a bit hacky but ok.
* we have to call vma_unmap now becuase we'll reset vma->fileh=NULL next.
* pyvma_dealloc also calls pyvma_clear. */
vma_unmap(vma);
vma->fileh = NULL;
Py_DECREF(pyfileh);
}
#endif
Py_CLEAR
(
pyvma
->
pyuser
);
return
0
;
}
...
...
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