From b5a1463ed4a034c3710c65866e9ed733e0e5705a Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Mon, 25 Jun 2007 13:33:53 +0000 Subject: [PATCH] Add one more check when shared memory is full. svn path=/trunk/boinc/; revision=13017 --- client/cpu_sched.C | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client/cpu_sched.C b/client/cpu_sched.C index 4fd72bcff7..8564b20c33 100644 --- a/client/cpu_sched.C +++ b/client/cpu_sched.C @@ -553,6 +553,13 @@ void CLIENT_STATE::schedule_cpus() { } else { atp->too_large = false; } + if (gstate.retry_shmem_time < gstate.now) { + if (atp->app_client_shm.shm == NULL) { + atp->needs_shmem = true; + continue; + } + atp->needs_shmem = false; + } ram_left -= atp->procinfo.working_set_size_smoothed; } double xx = (rp->project->resource_share / rrs) * expected_pay_off;