Changeset 3ac5086 in mainline for kernel/generic/include


Ignore:
Timestamp:
2012-11-24T02:08:55Z (13 years ago)
Author:
Adam Hraska <adam.hraska+hos@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5d230a30
Parents:
d04e46e
Message:

Fixed kernel futex cleanup: now walks list via correct links and frees items once it is sure cht is not resizing.

Location:
kernel/generic/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/adt/cht.h

    rd04e46e r3ac5086  
    136136        size_t max_load, bool can_block, cht_ops_t *op);
    137137extern void cht_destroy(cht_t *h);
     138extern void cht_destroy_unsafe(cht_t *h);
    138139
    139140extern cht_link_t *cht_find(cht_t *h, void *key);
  • kernel/generic/include/proc/task.h

    rd04e46e r3ac5086  
    129129        task_arch_t arch;
    130130       
    131         /** Serializes access to futex_list (independent of the task spinlock). */
    132         mutex_t futex_list_lock;
    133         /** List of all futexes accesses by this task. */
    134         list_t futex_list;
    135         /** CHT mapping virtual addresses of futex variables to futex objects. */
    136131        struct futex_cache {
     132                /** CHT mapping virtual addresses of futex variables to futex objects.*/
     133                cht_t ht;
     134                /** Serializes access to futex_list.*/
     135                mutex_t list_lock;
     136                /** List of all futexes accesses by this task. */
     137                list_t list;
    137138                work_t destroy_work;
    138                 cht_t ht;
    139139        } *futexes;
    140140       
Note: See TracChangeset for help on using the changeset viewer.