Re: [patch] threading enhancements, tid-2.5.47-C0

From: Luca Barbieri (ldb@ldb.ods.org)
Date: Mon Nov 18 2002 - 07:11:43 EST


But this way you throw away a lot of functionality, make the existence
of two pointers pointless, cause pthread_self() to change across fork
and force NPTL to copy thread state.

How about instead doing a verify_area in copy_process, putting the
child_settid address and the tid in two child registers and assigning it
in assembly in ret_from_fork?

Alternatively you could also manually call the copy-on-write handler
functions but this adds complexity for little gain.



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:22 EST