Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
3080d926
Kaydet (Commit)
3080d926
authored
May 06, 2014
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #21233: Fix _PyObject_Alloc() when compiled with WITH_VALGRIND defined
üst
8c9f480e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
obmalloc.c
Objects/obmalloc.c
+3
-3
No files found.
Objects/obmalloc.c
Dosyayı görüntüle @
3080d926
...
@@ -1176,6 +1176,9 @@ _PyObject_Alloc(int use_calloc, void *ctx, size_t nelem, size_t elsize)
...
@@ -1176,6 +1176,9 @@ _PyObject_Alloc(int use_calloc, void *ctx, size_t nelem, size_t elsize)
_Py_AllocatedBlocks
++
;
_Py_AllocatedBlocks
++
;
assert
(
nelem
<=
PY_SSIZE_T_MAX
/
elsize
);
nbytes
=
nelem
*
elsize
;
#ifdef WITH_VALGRIND
#ifdef WITH_VALGRIND
if
(
UNLIKELY
(
running_on_valgrind
==
-
1
))
if
(
UNLIKELY
(
running_on_valgrind
==
-
1
))
running_on_valgrind
=
RUNNING_ON_VALGRIND
;
running_on_valgrind
=
RUNNING_ON_VALGRIND
;
...
@@ -1183,9 +1186,6 @@ _PyObject_Alloc(int use_calloc, void *ctx, size_t nelem, size_t elsize)
...
@@ -1183,9 +1186,6 @@ _PyObject_Alloc(int use_calloc, void *ctx, size_t nelem, size_t elsize)
goto
redirect
;
goto
redirect
;
#endif
#endif
assert
(
nelem
<=
PY_SSIZE_T_MAX
/
elsize
);
nbytes
=
nelem
*
elsize
;
if
(
nelem
==
0
||
elsize
==
0
)
if
(
nelem
==
0
||
elsize
==
0
)
goto
redirect
;
goto
redirect
;
...
...
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