Re: [Boost-bugs] [Boost C++ Libraries] #8526: coroutine memory leak

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8526: coroutine memory leak
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-05-31 06:18:10


#8526: coroutine memory leak
---------------------------------------------------------+------------------
  Reporter: Seunghyun Nam <seunghyun.nam.gg@…> | Owner: olli
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: coroutine
   Version: Boost 1.53.0 | Severity: Problem
Resolution: fixed | Keywords:
---------------------------------------------------------+------------------

Comment (by olli):

 Replying to [comment:4 rivercheng@…]:
> Hi, Oliver
> Could you please explain how this bug is fixed? It exists in 1.53
 release and I want to know whether I can make a small change to existing
 codes to fix this problem instead of waiting for another release. Thanks a
 lot.

     void run()
     {
         ...
         {
             Caller c( this->caller_, false, this->preserve_fpu(), alloc_);
             fn_( c);
             ...
         }
         ...
     }

 If coroutine is unwinded fn_() throw unwind-excpetion and Caller ist
 automatically destructed.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8526#comment:5>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:13 UTC