Changeset ac9e79d in mainline for kernel/generic/src/proc/task.c


Ignore:
Timestamp:
2018-11-06T19:52:51Z (5 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b294126
Parents:
4a8d0dd1
Message:

Fix as_t reference counting

Commit 78de83de52a9115dc77b09bb7029403dad8c2fb0 changed the way how
reference counting works for newly created objects, but didn't remove
the explicit bumping of reference count for address spaces, which had
been necessary before that. Because of that, as_t structures were never
deallocated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/task.c

    r4a8d0dd1 rac9e79d  
    252252        futex_task_init(task);
    253253
    254         /*
    255          * Get a reference to the address space.
    256          */
    257         as_hold(task->as);
    258 
    259254        irq_spinlock_lock(&tasks_lock, true);
    260255
Note: See TracChangeset for help on using the changeset viewer.