On Tue, Sep 6, 2011 at 12:54, Paul Pluzhnikov <ppluzhni...@google.com> wrote: > On Tue, Sep 6, 2011 at 9:44 AM, Diego Novillo <dnovi...@google.com> wrote: > >> OK. Any reason not to send this (or a variant) to mainline? > > AFAIU, mainline is not interested -- there is already a debug mode (enabled > by _GLIBCXX_DEBUG), which catches many of the same bugs (and more), and > introduction of "parallel" debug modes is undesirable. > > Unfortunately, _GLIBCXX_DEBUG makes no performance guarantees (making some > normally constant-time operations O(N), etc.) and so we can't just turn > it on in Google.
Right. That's why I thought of a variant. Maybe we want to have levels of checking, or a _GLBICXX_DEBUG_FAST. But this is something to discuss with libstdc++ (CC'd). Diego. > > Thanks, > -- > Paul Pluzhnikov >