This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Slightly better way to __USE_MALLOC


On Wed, Oct 16, 2002 at 10:37:37PM -0500, Benjamin Kosnik wrote:
> 
> So is this patch finished, and ready to review?

Yes.  Sorry about the delay, but other work has caught up to me.  I
don't know if I'll say it's finished because I'm not sure I can meet
everyone's wishes ;)

Completed:

Renamed __default_alloc_template to __pool_alloc_template.
Made the definitions of both allocation templates present in the
  library, and _GLIBCPP_USE_MALLOC just selects which is the default one
  used by std::allocator.
Added (naive?) link-time guards to prevent objects compiled with
  different _GLIBCPP_USE_MALLOC settings from linking.  Tips on how to
  do this with symbol versioning would be appreciated.

TODO:

Figure out what the comment in c++config.h should say.
Write the final configopts.html entry and FAQ entry.

  
I hate to submit this patch in this semi-finalized form (I don't like
to be sloppy), but it's probably better than letting it rot.  I
haven't had the opportunity to run the test suite on it yet either.
I will be able to work more on it now if there are suggestions.  

-- 
------------------------------------------------------------------
Brad Spencer - spencer@infointeractive.com - "It's quite nice..."
Systems Architect | InfoInterActive Corp. | A Canadian AOL Company

Attachment: enable-pool-allocator-v2.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]