Severe JS memory leak - can someone confirm?

Simon Hausmann konq-e@mail.kde.org
Sat, 19 Oct 2002 11:06:57 +0200


On Thu, Oct 17, 2002 at 02:43:15PM +0200, Luciano Montanaro wrote:
Content-Description: clearsigned data
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Alle 09:23, giovedì 17 ottobre 2002, Simon Hausmann ha scritto:
> 
> > I think it's unrelated to khtmlview. The JS engine in kde2 had its
> > fair share of problems with the garbage collector, as far as I know.
> > It works MUCH better in the kde3 codebase.
> >
> > What does everyone think about switching to QT3 and KDE3 khtml/kjs
> > as codebase?
> >
> 
> There surely are problems in the JS garbage collector.
> The example code attached also leaks a lot.
> The KDE3 kjs/khtms seems to be much better (particularly the js engine)
> although it is quite a bit larger. My sample code works well in KDE3, too.
> I tried backporting just the garbage collector, but it's not easily doable,
> since the problem seem to be related to the object model of the Javascript
> engine rather than the garbage collector itself. 

Yup, I don't think backporting is worth the effort. It'd be a
nightmare to maintain.

Simon