Great,
thanks a lot!
We'll put it into our tree as soon as possible.
Sayeau, Derek wrote:
> Hi all, while away one of my co-workers discovered and fixed the bug
> described below,
> the change is on line 514 or datastr.h:
>
> origBlocksize(((logBlocksize_ > LIST_SIZE_LARGE) ? logBlocksize_ << 1 :
> TWO_TO(logBlocksize_)))
>
> Thanks...derek
> > -----Original Message-----
> > From: Nguyen, Dangson
> > Sent: Wednesday, September 27, 2000 10:55 AM
> > To: Sayeau, Derek
> > Subject: Memory problem in sablot
> >
> > Derek,
> >
> > One more item for you to communicate with GA. Please do a diff for file
> > datastr.h and see. Here are the testcases:
> >
> > <<mytest.xml>> <<mytest.xsl>>
> >
> > {
> > Basically, the problem was that they always take the specified list size
> > and raise it the the power of 2. So if you have an expressions with, say
> > 30 AND/OR subexpressions, the size is 2-to-the-power-of-30 = ~
> > >1Gbytes!...
> > }
> >
> >
> > Thx,
> > Dan Nguyen
> >
> >
> > --------------------------------------------------------------------------
> > --------------------------------------------------------------------------
> > ---------------------
> >
> > Code Stream *:
> > 6.6
> >
> > Summary *:
> > Fixed memory problem in trunk and MS2
> >
> > Description/Fix *:
> > Fixed memory problem when parsing (large) XSLT expressions. The problem
> > manifestation was either memory assert or large memory consumption.
> >
> > Files Modified:
> > /cwr/dev6-6/source/sablot/sablot/engine/datastr.h
> >
> > Product Compatibility:
> > This update is compatible with all other versions
> >
> > No error messages are affected by this change.
>
>
> ------------------------------------------------------------------------
>
> <root>
> myROOT
> </root>
>
>
> ------------------------------------------------------------------------
>
> <?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
>
> <xsl:template match="root">
> <xsl:if test="not(starts-with(string(./name), 'isschedulewizard'))
>and
> not(starts-with(string(./name), 'id')) and
> not(starts-with(string(./name), 'xmlcmd')) and
> not(starts-with(string(./name), 'cfc_op')) and
> not(starts-with(string(./name), 'reporthasprompts')) and
> not(starts-with(string(./name), 'promptsaved')) and
> not(starts-with(string(./name), 'modifyprompts')) and
> not(starts-with(string(./name), 'runmonday')) and
> not(starts-with(string(./name), 'runtuesday')) and
> not(starts-with(string(./name), 'runwednesday')) and
> not(starts-with(string(./name), 'runthurday')) and
> not(starts-with(string(./name), 'runfriday')) and
> not(starts-with(string(./name), 'runsaturday')) and
> not(starts-with(string(./name), 'runsunday')) and
> not(starts-with(string(./name), 'weekdaystate')) and
> not(starts-with(string(./name), 'weekdaystate')) and
> not(starts-with(string(./name), 'untilDate')) and
> not(starts-with(string(./name), 'frequencyname')) and
> not(starts-with(string(./name), 'year')) and
> not(starts-with(string(./name), 'month')) and
> not(starts-with(string(./name), 'day')) and
> not(starts-with(string(./name), 'hour')) and
> not(starts-with(string(./name), 'minute')) and
> not(starts-with(string(./name), 'runevery')) and
> not(starts-with(string(./name), 'weekdayevery')) and
> not(starts-with(string(./name), 'weekdayname')) and
> not(starts-with(string(./name), 'monthlyrunday')) and
> not(starts-with(string(./name), 'rununtilyear')) and
> not(starts-with(string(./name), 'rununtilmonth')) and
> not(starts-with(string(./name), 'rununtilday'))">
> </xsl:if>
> </xsl:template>
>
> </xsl:stylesheet>
>
> mytest.xml
>
> Content-Type:
>
> text/xml
>
>
> ------------------------------------------------------------------------
> mytest.xsl
>
> Content-Type:
>
> text/xml
>
>
--
Pavel Hlavnicka
Ginger Alliance Ltd.
Prague; Czech Republic