Thread (2 messages) flat view 2 messages, 2 authors, 2002-02-27

Re: used_math not cleared for new processes?

From: Jun Sun <hidden>
Date: 2002-02-27 23:53:17

Zhang Fuxin wrote:
hi,linux-mips,
   I find that current->used_math isn't cleared when we start a new process.Is it
intended? I mean 'start_thread' in do_exec but not 'copy_thread' in do_fork when
speaking 'start a new process'. We can/should? keep used_math for the latter,but for
the former?

I think it make sense to clear used_math in do_exec().  It also improvies the
 performance slightly by not loading the parent's FPU context when it uses the
FPU for the first time.

Do you have a patch for this?

Jun
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help