harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiao-Feng Li (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-3711) [drlvm][gc] kernel test RuntimeTest.test_freeMemory fails intermittently
Date Thu, 17 Jan 2008 14:01:40 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-3711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12559930#action_12559930
] 

Xiao-Feng Li commented on HARMONY-3711:
---------------------------------------

Thanks, Alexey. 

freeMemory() is an approximation according to the API spec. The test case looks like to require
freeMemory() to reflect 2KB size change of free memory. That looks like too rigorous. Since
the spec doesn't give the minimal changed size requirement, it's hard to say what granularity
is most reasonable. In my personal opinion, something close to 1MB is not unacceptable. :-)

> [drlvm][gc] kernel test RuntimeTest.test_freeMemory fails intermittently
> ------------------------------------------------------------------------
>
>                 Key: HARMONY-3711
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3711
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: x86-32
>            Reporter: Alexey Varlamov
>            Assignee: Xiao-Feng Li
>            Priority: Minor
>
> The kernel test java.lang.RuntimeTest.test_freeMemory() fails quite stably on Linux@ia32,
with the following diagnostics:
> Runtime.freeMemory method should be sensitive to huge memory allocating!
> junit.framework.AssertionFailedError: Runtime.freeMemory method should be sensitive to
huge memory allocating! at junit.framework.Assert.fail(Assert.java:47) at java.lang.RuntimeTest.test_freeMemory(RuntimeTest.java:102)
at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java) at java.lang.reflect.Method.invoke(Method.java:381)
at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java)
at junit.framework.TestResult$1.protect(TestResult.java) at junit.framework.TestResult.runProtected(TestResult.java)
at junit.framework.TestResult.run(TestResult.java) at junit.framework.TestCase.run(TestCase.java)
at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:546)

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


Mime
View raw message