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
35b0fd74
Kaydet (Commit)
35b0fd74
authored
Mar 22, 2016
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge 3.5
üst
f9a71153
d5871e62
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
_tracemalloc.c
Modules/_tracemalloc.c
+1
-15
No files found.
Modules/_tracemalloc.c
Dosyayı görüntüle @
35b0fd74
...
@@ -216,7 +216,7 @@ get_reentrant(void)
...
@@ -216,7 +216,7 @@ get_reentrant(void)
static
void
static
void
set_reentrant
(
int
reentrant
)
set_reentrant
(
int
reentrant
)
{
{
assert
(
!
reentrant
||
!
get_reentrant
()
);
assert
(
reentrant
!=
tracemalloc_reentrant
);
tracemalloc_reentrant
=
reentrant
;
tracemalloc_reentrant
=
reentrant
;
}
}
#endif
#endif
...
@@ -879,10 +879,6 @@ tracemalloc_clear_traces(void)
...
@@ -879,10 +879,6 @@ tracemalloc_clear_traces(void)
assert
(
PyGILState_Check
());
assert
(
PyGILState_Check
());
#endif
#endif
/* Disable also reentrant calls to tracemalloc_malloc() to not add a new
trace while we are clearing traces */
assert
(
get_reentrant
());
TABLES_LOCK
();
TABLES_LOCK
();
_Py_hashtable_clear
(
tracemalloc_traces
);
_Py_hashtable_clear
(
tracemalloc_traces
);
tracemalloc_traced_memory
=
0
;
tracemalloc_traced_memory
=
0
;
...
@@ -971,11 +967,6 @@ tracemalloc_init(void)
...
@@ -971,11 +967,6 @@ tracemalloc_init(void)
tracemalloc_empty_traceback
.
frames
[
0
].
lineno
=
0
;
tracemalloc_empty_traceback
.
frames
[
0
].
lineno
=
0
;
tracemalloc_empty_traceback
.
hash
=
traceback_hash
(
&
tracemalloc_empty_traceback
);
tracemalloc_empty_traceback
.
hash
=
traceback_hash
(
&
tracemalloc_empty_traceback
);
/* Disable tracing allocations until hooks are installed. Set
also the reentrant flag to detect bugs: fail with an assertion error
if set_reentrant(1) is called while tracing is disabled. */
set_reentrant
(
1
);
tracemalloc_config
.
initialized
=
TRACEMALLOC_INITIALIZED
;
tracemalloc_config
.
initialized
=
TRACEMALLOC_INITIALIZED
;
return
0
;
return
0
;
}
}
...
@@ -1063,7 +1054,6 @@ tracemalloc_start(int max_nframe)
...
@@ -1063,7 +1054,6 @@ tracemalloc_start(int max_nframe)
/* everything is ready: start tracing Python memory allocations */
/* everything is ready: start tracing Python memory allocations */
tracemalloc_config
.
tracing
=
1
;
tracemalloc_config
.
tracing
=
1
;
set_reentrant
(
0
);
return
0
;
return
0
;
}
}
...
@@ -1078,10 +1068,6 @@ tracemalloc_stop(void)
...
@@ -1078,10 +1068,6 @@ tracemalloc_stop(void)
/* stop tracing Python memory allocations */
/* stop tracing Python memory allocations */
tracemalloc_config
.
tracing
=
0
;
tracemalloc_config
.
tracing
=
0
;
/* set the reentrant flag to detect bugs: fail with an assertion error if
set_reentrant(1) is called while tracing is disabled. */
set_reentrant
(
1
);
/* unregister the hook on memory allocators */
/* unregister the hook on memory allocators */
#ifdef TRACE_RAW_MALLOC
#ifdef TRACE_RAW_MALLOC
PyMem_SetAllocator
(
PYMEM_DOMAIN_RAW
,
&
allocators
.
raw
);
PyMem_SetAllocator
(
PYMEM_DOMAIN_RAW
,
&
allocators
.
raw
);
...
...
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