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
15932593
Kaydet (Commit)
15932593
authored
Nis 22, 2016
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #26249: Try test_capi on Windows
üst
f5c4b990
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
obmalloc.c
Objects/obmalloc.c
+7
-6
No files found.
Objects/obmalloc.c
Dosyayı görüntüle @
15932593
...
...
@@ -166,7 +166,7 @@ _PyObject_ArenaFree(void *ctx, void *ptr, size_t size)
#else
# define PYOBJ_FUNCS PYRAW_FUNCS
#endif
#define PYMEM_FUNCS PY
RAW
_FUNCS
#define PYMEM_FUNCS PY
OBJ
_FUNCS
typedef
struct
{
/* We tag each block with an API ID in order to tag API violations */
...
...
@@ -198,9 +198,9 @@ static PyMemAllocatorEx _PyMem_Raw = {
static
PyMemAllocatorEx
_PyMem
=
{
#ifdef Py_DEBUG
&
_PyMem_Debug
.
obj
,
PYDBG_FUNCS
&
_PyMem_Debug
.
mem
,
PYDBG_FUNCS
#else
NULL
,
PY
OBJ
_FUNCS
NULL
,
PY
MEM
_FUNCS
#endif
};
...
...
@@ -252,11 +252,12 @@ _PyMem_SetupAllocators(const char *opt)
else
if
(
strcmp
(
opt
,
"pymalloc"
)
==
0
||
strcmp
(
opt
,
"pymalloc_debug"
)
==
0
)
{
PyMemAllocatorEx
mem_alloc
=
{
NULL
,
PYRAW_FUNCS
};
PyMemAllocatorEx
raw_alloc
=
{
NULL
,
PYRAW_FUNCS
};
PyMemAllocatorEx
mem_alloc
=
{
NULL
,
PYMEM_FUNCS
};
PyMemAllocatorEx
obj_alloc
=
{
NULL
,
PYOBJ_FUNCS
};
PyMem_SetAllocator
(
PYMEM_DOMAIN_RAW
,
&
mem
_alloc
);
PyMem_SetAllocator
(
PYMEM_DOMAIN_MEM
,
&
obj
_alloc
);
PyMem_SetAllocator
(
PYMEM_DOMAIN_RAW
,
&
raw
_alloc
);
PyMem_SetAllocator
(
PYMEM_DOMAIN_MEM
,
&
mem
_alloc
);
PyMem_SetAllocator
(
PYMEM_DOMAIN_OBJ
,
&
obj_alloc
);
if
(
strcmp
(
opt
,
"pymalloc_debug"
)
==
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