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
ce7fb9b5
Kaydet (Commit)
ce7fb9b5
authored
Mar 23, 2002
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Just whitespace fiddling.
üst
1221c0a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
obmalloc.c
Objects/obmalloc.c
+10
-10
No files found.
Objects/obmalloc.c
Dosyayı görüntüle @
ce7fb9b5
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
*
*
* For small requests, the allocator sub-allocates <Big> blocks of memory.
* For small requests, the allocator sub-allocates <Big> blocks of memory.
* Requests greater than 256 bytes are routed to the system's allocator.
* Requests greater than 256 bytes are routed to the system's allocator.
*
*
* Small requests are grouped in size classes spaced 8 bytes apart, due
* Small requests are grouped in size classes spaced 8 bytes apart, due
* to the required valid alignment of the returned address. Requests of
* to the required valid alignment of the returned address. Requests of
* a particular size are serviced from memory pools of 4K (one VMM page).
* a particular size are serviced from memory pools of 4K (one VMM page).
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
* ... ... ...
* ... ... ...
* 241-248 248 30
* 241-248 248 30
* 249-256 256 31
* 249-256 256 31
*
*
* 0, 257 and up: routed to the underlying allocator.
* 0, 257 and up: routed to the underlying allocator.
*/
*/
...
@@ -472,7 +472,7 @@ _PyMalloc_Malloc(size_t nbytes)
...
@@ -472,7 +472,7 @@ _PyMalloc_Malloc(size_t nbytes)
UNLOCK
();
UNLOCK
();
goto
redirect
;
goto
redirect
;
}
}
/*
/*
* Keep a reference in the list of allocated arenas. We might
* Keep a reference in the list of allocated arenas. We might
* want to release (some of) them in the future. The first
* want to release (some of) them in the future. The first
* word is never used, no matter whether the returned address
* word is never used, no matter whether the returned address
...
@@ -491,7 +491,7 @@ _PyMalloc_Malloc(size_t nbytes)
...
@@ -491,7 +491,7 @@ _PyMalloc_Malloc(size_t nbytes)
/* The small block allocator ends here. */
/* The small block allocator ends here. */
redirect:
redirect:
/*
/*
* Redirect the original request to the underlying (libc) allocator.
* Redirect the original request to the underlying (libc) allocator.
* We jump here on bigger requests, on error in the code above (as a
* We jump here on bigger requests, on error in the code above (as a
...
@@ -641,14 +641,14 @@ _PyMalloc_Calloc(size_t nbel, size_t elsz)
...
@@ -641,14 +641,14 @@ _PyMalloc_Calloc(size_t nbel, size_t elsz)
*/
*/
#else
/* ! WITH_PYMALLOC */
#else
/* ! WITH_PYMALLOC */
void
void
*
*
_PyMalloc_Malloc
(
size_t
n
)
_PyMalloc_Malloc
(
size_t
n
)
{
{
return
PyMem_MALLOC
(
n
);
return
PyMem_MALLOC
(
n
);
}
}
void
void
*
*
_PyMalloc_Realloc
(
void
*
p
,
size_t
n
)
_PyMalloc_Realloc
(
void
*
p
,
size_t
n
)
{
{
return
PyMem_REALLOC
(
p
,
n
);
return
PyMem_REALLOC
(
p
,
n
);
}
}
...
@@ -660,8 +660,8 @@ _PyMalloc_Free(void *p)
...
@@ -660,8 +660,8 @@ _PyMalloc_Free(void *p)
}
}
#endif
/* WITH_PYMALLOC */
#endif
/* WITH_PYMALLOC */
PyObject
PyObject
*
*
_PyMalloc_New
(
PyTypeObject
*
tp
)
_PyMalloc_New
(
PyTypeObject
*
tp
)
{
{
PyObject
*
op
;
PyObject
*
op
;
op
=
(
PyObject
*
)
_PyMalloc_MALLOC
(
_PyObject_SIZE
(
tp
));
op
=
(
PyObject
*
)
_PyMalloc_MALLOC
(
_PyObject_SIZE
(
tp
));
...
...
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