New Product Launch Marketing Plan

Aesthetic Colors

25 best aesthetic color palettes with names and hex codes 25 best aesthetic color palettes with names and hex codes 25 best aesthetic color palettes with names and hex codes 25 best aesthetic color palettes with names and hex codes 25 best aesthetic color palettes with names and hex codes 25 best aesthetic color palettes with names and hex codes 25 best aesthetic color palettes with names and hex codes 25 best aesthetic color palettes with names and hex codes 25 best aesthetic color palettes with names and hex codes 25 best aesthetic color palettes with names and hex codes pastel color palette aesthetic cute colors pastel colour 25 aesthetic color palettes for every aesthetic with hex color codes 25 aesthetic color palettes for every aesthetic with hex color codes pin by jess cunningham on color aesthetic hex color palette color vaporwave aesthetic color palette aesthetic color palettes hex codes aesthetic color palettes hex codes aesthetic color palettes hex codes aesthetic color palettes hex codes aesthetic color palettes hex codes aesthetic color palette hex codes dreamy color palette bold and 25 aesthetic color palettes for every aesthetic with hex color codes 25 aesthetic color palettes for every aesthetic with hex color codes 25 aesthetic color palettes for every aesthetic with hex color codes 25 aesthetic color palettes for every aesthetic with hex color codes 25 aesthetic color palettes for every aesthetic with hex color codes 25 aesthetic color palettes for every aesthetic with hex color codes 25 aesthetic color palettes for every aesthetic with hex color codes 25 aesthetic color palettes for every aesthetic with hex color codes 25 aesthetic color palettes for every aesthetic with hex color codes 25 aesthetic color palettes for every aesthetic with hex color codes 25 aesthetic color palettes for every aesthetic with hex color codes 25 aesthetic color palettes for every aesthetic with hex color codes 25 aesthetic color palettes for every aesthetic with hex color codes 25 aesthetic color palettes for every aesthetic with hex color codes

:
Good Fonts For Business Cards
Short Arguments By Newspaper: Fix missing PyRefTracer_DESTROY events for trashcan objects (Sample Page For Contact Us)
1 parent Accept Credit Card Payment commit 3dfa574

25 best aesthetic color palettes with names and hex codes 4 files changed Sticker Business Cards

Lines changed: 54 additions & 0 deletions

Free Printable Product List Templates Aesthetic Colors

Lib/test/test_capi/test_object.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,5 +342,20 @@ def test_pyobject_dump(self):
342342
self.assertRegex(output, r'<object at .* is freed>')
343343

344344

345+
class RefTracerTest(unittest.TestCase):
346+
@support.requires_resource('cpu')
347+
@support.skip_emscripten_stack_overflow()
348+
@support.skip_wasi_stack_overflow()
349+
def test_destroy_traced_for_trashcan_deferred_objects(self):
350+
depth = 200_000
351+
chain = None
352+
for _ in range(depth):
353+
chain = [chain]
354+
_testcapi.start_counting_list_destroys()
355+
del chain
356+
destroys = _testcapi.stop_counting_list_destroys()
357+
self.assertEqual(destroys, depth)
358+
359+
345360
if __name__ == "__main__":
346361
unittest.main()
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix missing ``PyRefTracer_DESTROY`` events for trashcan deferred objects.
2+
Patch by Donghee Na.

Modules/_testcapimodule.c

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ static struct PyModuleDef _testcapimodule;
3939
// Module state
4040
typedef struct {
4141
PyObject *error; // _testcapi.error object
42+
Py_ssize_t list_destroys;
4243
} testcapistate_t;
4344

4445
static testcapistate_t*
@@ -2412,6 +2413,36 @@ test_reftracer(PyObject *ob, PyObject *Py_UNUSED(ignored))
24122413
return NULL;
24132414
}
24142415

2416+
static int
2417+
_listdestroytracer(PyObject *obj, PyRefTracerEvent event, void *data)
2418+
{
2419+
if (event == PyRefTracer_DESTROY && PyList_CheckExact(obj)) {
2420+
_Py_atomic_add_ssize((Py_ssize_t *)data, 1);
2421+
}
2422+
return 0;
2423+
}
2424+
2425+
static PyObject *
2426+
start_counting_list_destroys(PyObject *self, PyObject *Py_UNUSED(ignored))
2427+
{
2428+
testcapistate_t *state = get_testcapi_state(self);
2429+
_Py_atomic_store_ssize(&state->list_destroys, 0);
2430+
if (PyRefTracer_SetTracer(_listdestroytracer, &state->list_destroys) != 0) {
2431+
return NULL;
2432+
}
2433+
Py_RETURN_NONE;
2434+
}
2435+
2436+
static PyObject *
2437+
stop_counting_list_destroys(PyObject *self, PyObject *Py_UNUSED(ignored))
2438+
{
2439+
if (PyRefTracer_SetTracer(NULL, NULL) != 0) {
2440+
return NULL;
2441+
}
2442+
return PyLong_FromSsize_t(
2443+
_Py_atomic_load_ssize(&get_testcapi_state(self)->list_destroys));
2444+
}
2445+
24152446
static PyObject *
24162447
function_set_warning(PyObject *Py_UNUSED(module), PyObject *Py_UNUSED(args))
24172448
{
@@ -3016,6 +3047,8 @@ static PyMethodDef TestMethods[] = {
30163047
{"test_buildvalue_N", test_buildvalue_N, METH_NOARGS},
30173048
{"test_buildvalue_p", test_buildvalue_p, METH_NOARGS},
30183049
{"test_reftracer", test_reftracer, METH_NOARGS},
3050+
{"start_counting_list_destroys", start_counting_list_destroys, METH_NOARGS},
3051+
{"stop_counting_list_destroys", stop_counting_list_destroys, METH_NOARGS},
30193052
{"_test_thread_state", test_thread_state, METH_VARARGS},
30203053
{"gilstate_ensure_release", gilstate_ensure_release, METH_NOARGS},
30213054
#ifndef MS_WINDOWS

Objects/object.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3228,6 +3228,10 @@ _PyTrash_thread_destroy_chain(PyThreadState *tstate)
32283228
* up distorting allocation statistics.
32293229
*/
32303230
_PyObject_ASSERT(op, Py_REFCNT(op) == 0);
3231+
#ifdef Py_TRACE_REFS
3232+
_Py_ForgetReference(op);
3233+
#endif
3234+
_PyReftracerTrack(op, PyRefTracer_DESTROY);
32313235
(*dealloc)(op);
32323236
}
32333237
}

Blog Templates Darrk Book Jorurnal Aesthetic Colors

Comments
 (0)