You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Salikh Zakirov (JIRA)" <ji...@apache.org> on 2006/12/15 12:23:21 UTC
[jira] Created: (HARMONY-2739) [classlib][nio] CharsetDecoder leaks
memory
[classlib][nio] CharsetDecoder leaks memory
-------------------------------------------
Key: HARMONY-2739
URL: http://issues.apache.org/jira/browse/HARMONY-2739
Project: Harmony
Issue Type: Bug
Components: Classlib
Environment: Windows XP i686
Reporter: Salikh Zakirov
Attachments: Dec.java
The attached test Dec.java results in used memory constanly growing.
The leak is reproducible on both J9 + Harmony and DRLVM.
There is no leak if the test is run on Hotspot or JRockit.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (HARMONY-2739) [classlib][nio] CharsetDecoder leaks
memory
Posted by "Salikh Zakirov (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2739?page=all ]
Salikh Zakirov updated HARMONY-2739:
------------------------------------
Attachment: Dec.java
> [classlib][nio] CharsetDecoder leaks memory
> -------------------------------------------
>
> Key: HARMONY-2739
> URL: http://issues.apache.org/jira/browse/HARMONY-2739
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Windows XP i686
> Reporter: Salikh Zakirov
> Attachments: Dec.java
>
>
> The attached test Dec.java results in used memory constanly growing.
> The leak is reproducible on both J9 + Harmony and DRLVM.
> There is no leak if the test is run on Hotspot or JRockit.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (HARMONY-2739) [classlib][nio] CharsetDecoder
leaks memory
Posted by "Salikh Zakirov (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2739?page=comments#action_12460472 ]
Salikh Zakirov commented on HARMONY-2739:
-----------------------------------------
Unfortunately, I don't know what in particular causes memory footprint to grow unbounded.
The following change in test leads to a stable memory footprint (i.e. with replaceWith() commented out, the used memory is not growing unbounded)
--- Dec.java.orig 2006-12-22 16:24:25.290379100 +0300
+++ Dec.java 2006-12-22 16:24:26.962750500 +0300
@@ -10,3 +10,3 @@
CharsetDecoder cd = cs.newDecoder();
- cd = cd.replaceWith("a");
+ //cd = cd.replaceWith("a");
String str = "abc";
> [classlib][nio] CharsetDecoder leaks memory
> -------------------------------------------
>
> Key: HARMONY-2739
> URL: http://issues.apache.org/jira/browse/HARMONY-2739
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Windows XP i686
> Reporter: Salikh Zakirov
> Attachments: Dec.java
>
>
> The attached test Dec.java results in used memory constanly growing.
> The leak is reproducible on both J9 + Harmony and DRLVM.
> There is no leak if the test is run on Hotspot or JRockit.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (HARMONY-2739) [classlib][nio] CharsetDecoder
leaks memory
Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2739?page=comments#action_12460389 ]
Nathan Beyer commented on HARMONY-2739:
---------------------------------------
Can you comment on why you think it's the CharsetDecoder that's leaking memory? What in particular is attached to CharsetDecoder that's not getting de-referenced?
> [classlib][nio] CharsetDecoder leaks memory
> -------------------------------------------
>
> Key: HARMONY-2739
> URL: http://issues.apache.org/jira/browse/HARMONY-2739
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Windows XP i686
> Reporter: Salikh Zakirov
> Attachments: Dec.java
>
>
> The attached test Dec.java results in used memory constanly growing.
> The leak is reproducible on both J9 + Harmony and DRLVM.
> There is no leak if the test is run on Hotspot or JRockit.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (HARMONY-2739) [classlib][nio] CharsetDecoder leaks
memory
Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Hindess closed HARMONY-2739.
---------------------------------
This has been resolved for some time so I think it can be closed.
> [classlib][nio] CharsetDecoder leaks memory
> -------------------------------------------
>
> Key: HARMONY-2739
> URL: https://issues.apache.org/jira/browse/HARMONY-2739
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Windows XP i686
> Reporter: Salikh Zakirov
> Assignee: Mikhail Markov
> Attachments: Dec.java
>
>
> The attached test Dec.java results in used memory constanly growing.
> The leak is reproducible on both J9 + Harmony and DRLVM.
> There is no leak if the test is run on Hotspot or JRockit.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-2739) [classlib][nio] CharsetDecoder
leaks memory
Posted by "Mikhail Markov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12505287 ]
Mikhail Markov commented on HARMONY-2739:
-----------------------------------------
Since Harmony has moved to the new charsets implementation this issue is not reproducible anymore.
Less memory leak -that's cool :-).
> [classlib][nio] CharsetDecoder leaks memory
> -------------------------------------------
>
> Key: HARMONY-2739
> URL: https://issues.apache.org/jira/browse/HARMONY-2739
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Windows XP i686
> Reporter: Salikh Zakirov
> Attachments: Dec.java
>
>
> The attached test Dec.java results in used memory constanly growing.
> The leak is reproducible on both J9 + Harmony and DRLVM.
> There is no leak if the test is run on Hotspot or JRockit.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-2739) [classlib][nio] CharsetDecoder
leaks memory
Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470493 ]
Tony Wu commented on HARMONY-2739:
----------------------------------
I have reported it to ICU http://bugs.icu-project.org/trac/ticket/5579
> [classlib][nio] CharsetDecoder leaks memory
> -------------------------------------------
>
> Key: HARMONY-2739
> URL: https://issues.apache.org/jira/browse/HARMONY-2739
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Windows XP i686
> Reporter: Salikh Zakirov
> Attachments: Dec.java
>
>
> The attached test Dec.java results in used memory constanly growing.
> The leak is reproducible on both J9 + Harmony and DRLVM.
> There is no leak if the test is run on Hotspot or JRockit.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-2739) [classlib][nio] CharsetDecoder
leaks memory
Posted by "Salikh Zakirov (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2739?page=comments#action_12460483 ]
Salikh Zakirov commented on HARMONY-2739:
-----------------------------------------
Harmony classlib has no non-trivial implementation of implReplaceWith() method, so the problem is likely to be in icu4j
> [classlib][nio] CharsetDecoder leaks memory
> -------------------------------------------
>
> Key: HARMONY-2739
> URL: http://issues.apache.org/jira/browse/HARMONY-2739
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Windows XP i686
> Reporter: Salikh Zakirov
> Attachments: Dec.java
>
>
> The attached test Dec.java results in used memory constanly growing.
> The leak is reproducible on both J9 + Harmony and DRLVM.
> There is no leak if the test is run on Hotspot or JRockit.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (HARMONY-2739) [classlib][nio] CharsetDecoder
leaks memory
Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470492 ]
Tony Wu commented on HARMONY-2739:
----------------------------------
Sorry I submit previous message by mistake.
The error is thrown when I ran the raw ICU3.6 on RI. Seems, it is caused by icu, but it fails much faster on harmony than on RI.
the output on Harmony was,
....java.lang.RuntimeException: U_ILLEGAL_ARGUMENT_ERROR
at com.ibm.icu4jni.common.ErrorCode.getException(ErrorCode.java:45)
at com.ibm.icu4jni.charset.CharsetDecoderICU.implReplaceWith(CharsetDecoderICU.java:16)
at java.nio.charset.CharsetDecoder.replaceWith(CharsetDecoder.java:722)
at T.main(T.java:87)
FAILED
whereas on RI was,
..........................................................................java.lang.RuntimeException: U_ILLEGAL_ARGUMENT_ERROR
FAILED
at com.ibm.icu4jni.common.ErrorCode.getException(ErrorCode.java:45)
at com.ibm.icu4jni.charset.CharsetDecoderICU.implReplaceWith(CharsetDecoderICU.java:106)
at java.nio.charset.CharsetDecoder.replaceWith(CharsetDecoder.java:271)
at T.main(T.java:87)
> [classlib][nio] CharsetDecoder leaks memory
> -------------------------------------------
>
> Key: HARMONY-2739
> URL: https://issues.apache.org/jira/browse/HARMONY-2739
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Windows XP i686
> Reporter: Salikh Zakirov
> Attachments: Dec.java
>
>
> The attached test Dec.java results in used memory constanly growing.
> The leak is reproducible on both J9 + Harmony and DRLVM.
> There is no leak if the test is run on Hotspot or JRockit.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-2739) [classlib][nio] CharsetDecoder
leaks memory
Posted by "Tony Wu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470483 ]
Tony Wu commented on HARMONY-2739:
----------------------------------
I got a error on Hotspot
.........................................................................#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x10002e0d, pid=2368, tid=5760
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_08-b03 mixed mode)
# Problematic frame:
# C [ICUInterface36.dll+0x2e0d]
#
# An error report file with more information is saved as hs_err_pid2368.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
> [classlib][nio] CharsetDecoder leaks memory
> -------------------------------------------
>
> Key: HARMONY-2739
> URL: https://issues.apache.org/jira/browse/HARMONY-2739
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Windows XP i686
> Reporter: Salikh Zakirov
> Attachments: Dec.java
>
>
> The attached test Dec.java results in used memory constanly growing.
> The leak is reproducible on both J9 + Harmony and DRLVM.
> There is no leak if the test is run on Hotspot or JRockit.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HARMONY-2739) [classlib][nio] CharsetDecoder
leaks memory
Posted by "Mikhail Markov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2739?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mikhail Markov resolved HARMONY-2739.
-------------------------------------
Resolution: Cannot Reproduce
Assignee: Mikhail Markov
No memory leak with new charsets implementation.
> [classlib][nio] CharsetDecoder leaks memory
> -------------------------------------------
>
> Key: HARMONY-2739
> URL: https://issues.apache.org/jira/browse/HARMONY-2739
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Windows XP i686
> Reporter: Salikh Zakirov
> Assignee: Mikhail Markov
> Attachments: Dec.java
>
>
> The attached test Dec.java results in used memory constanly growing.
> The leak is reproducible on both J9 + Harmony and DRLVM.
> There is no leak if the test is run on Hotspot or JRockit.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.