Changeset 4680ef5 in mainline for uspace


Ignore:
Timestamp:
2007-06-13T21:36:59Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8b243f2
Parents:
341140c
Message:

Fix a double-free recently introduced in revision r2436.
Add a comment clarifying the life-cycle of the kernel_uarg structure.

Comment out the freeing of userspace thread stack while still running on it.
This should be fixed by implementing userspace version of thread_join().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/libc/generic/thread.c

    r341140c r4680ef5  
    108108        uarg->uspace_thread_function(uarg->uspace_thread_arg);
    109109        /* XXX: we cannot free the userspace stack while running on it */
    110         free(uarg->uspace_stack);
    111         free(uarg);
     110//      free(uarg->uspace_stack);
     111//      free(uarg);
    112112
    113113        /* If there is a manager, destroy it */
Note: See TracChangeset for help on using the changeset viewer.