You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2011/01/13 19:13:45 UTC

[jira] Updated: (TS-168) LogBuffer.h/LogObject.h overload operator new and do object initialization there using iObject which is evil

     [ https://issues.apache.org/jira/browse/TS-168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leif Hedstrom updated TS-168:
-----------------------------

         Priority: Critical  (was: Major)
    Fix Version/s:     (was: 3.1)
                   2.1.6

> LogBuffer.h/LogObject.h overload operator new and do object initialization there using iObject which is evil
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: TS-168
>                 URL: https://issues.apache.org/jira/browse/TS-168
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Logging
>            Reporter: John Plevyak
>            Priority: Critical
>             Fix For: 2.1.6
>
>         Attachments: LogBuff.diff
>
>
> In header LogBuffer.h the classes iObject/iObjectActivator/iLogBufferData
> need to be cleaned up.
> This code is terribly designed.  Nobody should ever do object initialization
> in an overloaded new operator.   This caused TS-159.
> The logging code was designed to be completely lockless on the critical path
> and not to do any malloc/new (which typically involve locks) and this code
> breaks that design.
> Basically, this should be rewritten, perhaps someone for Y! could attach
> the patch which added this junk so it can be backed out and whatever
> real functionality it added, added in a reasonable way.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.