mirror of
https://github.com/python/cpython.git
synced 2025-08-23 18:24:46 +00:00
gh-111178: Fix function signatures for multiple tests (#131496)
This commit is contained in:
parent
486d537065
commit
34c1ea3109
15 changed files with 112 additions and 69 deletions
|
@ -378,13 +378,21 @@ tracemalloc_create_traces_table(void)
|
|||
}
|
||||
|
||||
|
||||
static void
|
||||
tracemalloc_destroy_domain(void *value)
|
||||
{
|
||||
_Py_hashtable_t *ht = (_Py_hashtable_t*)value;
|
||||
_Py_hashtable_destroy(ht);
|
||||
}
|
||||
|
||||
|
||||
static _Py_hashtable_t*
|
||||
tracemalloc_create_domains_table(void)
|
||||
{
|
||||
return hashtable_new(hashtable_hash_uint,
|
||||
_Py_hashtable_compare_direct,
|
||||
NULL,
|
||||
(_Py_hashtable_destroy_func)_Py_hashtable_destroy);
|
||||
tracemalloc_destroy_domain);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue