homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Potential Bug in dlpvalloc and dlvalloc
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.3
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: Ken.Cheung, amaury.forgeotdarc, meador.inge
Priority: normal Keywords:

Created on 2012年06月13日 17:46 by Ken.Cheung, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
dlmalloc_clone.txt Ken.Cheung, 2012年06月13日 17:46
Messages (2)
msg162718 - (view) Author: Ken Cheung (Ken.Cheung) Date: 2012年06月13日 17:46
I observed a code clone from the following files.
function : dlpvalloc @ (file: "Python-3.3.0a2/Modules/_ctypes/libffi/src/dlmalloc.c", line: 4360)~4362
function : dlvalloc @ (file: "Python-3.3.0a2/Modules/_ctypes/libffi/src/dlmalloc.c", line: 4353)~4355
The function dlpvalloc performs a bitwise operation at return while dlvalloc does not. I wonder if this is necessary in dlvalloc. The source code is included in the attachment. Hope it helps.
msg162721 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2012年06月13日 18:44
Well, this bitwise operation is exactly why there are two functions: dlvpalloc rounds up to the nearest page size, and dlvalloc does not.
History
Date User Action Args
2022年04月11日 14:57:31adminsetgithub: 59263
2012年06月13日 18:44:24amaury.forgeotdarcsetstatus: open -> closed
resolution: works for me
messages: + msg162721
2012年06月13日 18:33:15r.david.murraysetnosy: + amaury.forgeotdarc, meador.inge
2012年06月13日 17:47:13Ken.Cheungsettitle: Potential Bugs in dlpvalloc and dlvalloc -> Potential Bug in dlpvalloc and dlvalloc
2012年06月13日 17:46:46Ken.Cheungcreate

AltStyle によって変換されたページ (->オリジナル) /