diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-28 09:29:51 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-31 10:14:35 +0200 |
commit | f0b4fd9c2e680b7eaf4b4710f02d1d2127cab2e0 (patch) | |
tree | 9ed0955fe442b11f92fb9f5a6e4181f21e0af456 /cpukit/score/src/threadrestart.c | |
parent | score: PR2152: Use allocator mutex for objects (diff) | |
download | rtems-f0b4fd9c2e680b7eaf4b4710f02d1d2127cab2e0.tar.bz2 |
score: Do not reset resource count during restart
This fixes an integer underflow problem in case resources are released
after a thread restart.
Add new test sptests/spthreadlife01.
Diffstat (limited to 'cpukit/score/src/threadrestart.c')
-rw-r--r-- | cpukit/score/src/threadrestart.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/cpukit/score/src/threadrestart.c b/cpukit/score/src/threadrestart.c index 985329f470..4b83edefb7 100644 --- a/cpukit/score/src/threadrestart.c +++ b/cpukit/score/src/threadrestart.c @@ -212,7 +212,6 @@ static void _Thread_Start_life_change( Priority_Control priority ) { - the_thread->resource_count = 0; the_thread->is_preemptible = the_thread->Start.is_preemptible; the_thread->budget_algorithm = the_thread->Start.budget_algorithm; the_thread->budget_callout = the_thread->Start.budget_callout; |