From 2259fb96802b8f5f4d4c49f924505b7c7fce30ad Mon Sep 17 00:00:00 2001 From: Angel Ortega Date: Wed, 1 Dec 2010 07:14:17 +0100 Subject: [PATCH] Deleted all calls to mpdm_sweep(). --- mpsl_c.c | 4 ---- mpsl_f.c | 17 ----------------- stress.c | 12 ------------ 3 files changed, 33 deletions(-) diff --git a/mpsl_c.c b/mpsl_c.c index 0cff742..c586f1e 100644 --- a/mpsl_c.c +++ b/mpsl_c.c @@ -753,10 +753,6 @@ O_TYPE mpsl_exec_i(O_ARGS) /* if aborted or NULL, do nothing */ if (!mpsl_abort && c != NULL) { - /* sweep some values */ - if (!in_constant_folding) - mpdm_sweep(0); - /* gets the opcode and calls it */ ret = op_table[mpdm_ival(C0)].func(c, a, l, f); diff --git a/mpsl_f.c b/mpsl_f.c index f6f9d76..2beb505 100644 --- a/mpsl_f.c +++ b/mpsl_f.c @@ -845,22 +845,6 @@ static mpdm_t F_error(F_ARGS) { } /** - * sweep - Sweeps unreferenced values. - * @count: number of values to be swept - * - * Destroys values with a reference count of 0. @count is the - * number of values to be checked for deletion; special values of - * @count are -1, that forces a check of all currently known values - * (can be time-consuming) and 0, which tells sweep() to check a - * small group of them on each call. - * [Value Management] - */ -/** sweep(count); */ -static mpdm_t F_sweep(F_ARGS) { - mpdm_sweep(IA0); return NULL; -} - -/** * uc - Converts a string to uppercase. * @str: the string to be converted * @@ -1288,7 +1272,6 @@ static struct { { L"gettext", F_gettext }, { L"gettext_domain", F_gettext_domain }, { L"sprintf", F_sprintf }, - { L"sweep", F_sweep }, { L"chr", F_chr }, { L"ord", F_ord }, { L"map", F_map }, diff --git a/stress.c b/stress.c index f1e1f4f..eab1884 100644 --- a/stress.c +++ b/stress.c @@ -655,18 +655,6 @@ int main(void) test_mpsl_file(); test_abort_and_eval(); - mpdm_sweep(-1); - mpdm_sweep(-1); - mpdm_sweep(-1); - mpdm_sweep(-1); - mpdm_sweep(-1); - mpdm_sweep(-1); - mpdm_sweep(-1); - mpdm_sweep(-1); - mpdm_sweep(-1); - -/* mpdm_dump_unref();*/ - mpsl_shutdown(); printf("\n*** Total tests passed: %d/%d\n", oks, tests); -- 2.11.4.GIT