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
f6386306
Kaydet (Commit)
f6386306
authored
Mar 02, 2006
tarafından
Tim Peters
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Document the purpose of the struct _block members.
üst
6fd92dc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
pyarena.c
Python/pyarena.c
+18
-1
No files found.
Python/pyarena.c
Dosyayı görüntüle @
f6386306
#include "Python.h"
#include "Python.h"
#include "pyarena.h"
#include "pyarena.h"
/* A simple arena block structure
/* A simple arena block structure
.
Measurements with standard library modules suggest the average
Measurements with standard library modules suggest the average
allocation is about 20 bytes and that most compiles use a single
allocation is about 20 bytes and that most compiles use a single
...
@@ -10,9 +10,26 @@
...
@@ -10,9 +10,26 @@
#define DEFAULT_BLOCK_SIZE 8192
#define DEFAULT_BLOCK_SIZE 8192
typedef
struct
_block
{
typedef
struct
_block
{
/* Total number of bytes owned by this block available to pass out.
* Read-only after initialization. The first such byte starts at
* ab_mem.
*/
size_t
ab_size
;
size_t
ab_size
;
/* Total number of bytes already passed out. The next byte available
* to pass out starts at ab_mem + ab_offset.
*/
size_t
ab_offset
;
size_t
ab_offset
;
/* An arena maintains a singly-linked, NULL-terminated list of
* all blocks owned by the arena. These are linked via the
* ab_next member.
*/
struct
_block
*
ab_next
;
struct
_block
*
ab_next
;
/* Pointer to the first allocatable byte owned by this block. Read-
* only after initialization.
*/
void
*
ab_mem
;
void
*
ab_mem
;
}
block
;
}
block
;
...
...
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