| Summary: | Memory consumption keeps increasing when using XMLHttpRequest and importNode() | ||
|---|---|---|---|
| Product: | [Applications] konqueror | Reporter: | Maarten ter Huurne <maarten> |
| Component: | khtml | Assignee: | Konqueror Bugs <konqueror-bugs-null> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | CC: | maksim |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: |
Test case: HTML page
Test case: XML data Test case: test data generator script |
||
|
Description
Maarten ter Huurne
2009-04-06 23:36:39 UTC
Created attachment 32667 [details]
Test case: HTML page
Created attachment 32668 [details]
Test case: XML data
Created attachment 32669 [details]
Test case: test data generator script
Part of the issue is GC not knowing to run, which is addressed by:
--- ecma/xmlhttprequest.cpp (revision 947878)
+++ ecma/xmlhttprequest.cpp (working copy)
@@ -22,8 +22,8 @@
#include "xmlhttprequest.lut.h"
#include "kjs_window.h"
#include "kjs_events.h"
+#include <kjs/collector.h>
-
#include "dom/dom_doc.h"
#include "dom/dom_exception.h"
#include "dom/dom_string.h"
@@ -168,6 +168,9 @@
responseXML->close();
typeIsXML = true;
+
+ // Tell GC that we have something fat...
+ Collector::reportExtraMemoryCost(response.length()/8);
} else {
typeIsXML = false;
}
.. but that's still not enough.
Dear Bug Submitter, This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond. Thank you for helping us make KDE software even better for everyone! Dear Bug Submitter, This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? Thank you for helping us make KDE software even better for everyone! Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version? If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you! Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone! |