patacongo commented on pull request #3626:
URL: https://github.com/apache/incubator-nuttx/pull/3626#issuecomment-853212742


   >  I think there are other complexities and corner cases that you are not 
addressing.
   
   Another complexity is the management of the address environment.  Before you 
can call pthread_exit() (or any other user-space function) in KERNEL mode, the 
OS must select the correct address environment.  Accessing any resource of the 
process from the wrong address environment will fail.
   
   This is not a show stopper, just a complexity in the design that must be 
handled.  The address environment of the process is saved in the group 
structure (tg_addrenv).  It cannot be momentarily selected to access any 
addrenv_reserve_s data.  And it can be selected before pthread_exit() is called.
   
   Is this a flaw in the current implementation?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to