Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 2.0
    • Component/s: Utilities
    • Labels:
      None
    • Environment:

      Description

      The following code in FileCleaningTrackerTestCase never exits, hanging the whole compilation/testing process:

      private void waitUntilTrackCount() {
      while (theInstance.getTrackCount() != 0) {
      int total = 0;
      while (theInstance.getTrackCount() != 0)

      { byte[] b = new byte[1024 * 1024]; b[0] = (byte) System.currentTimeMillis(); total = total + b[0]; System.gc(); }

      }
      }

      It is clear that in theory this code might loop forever, as the allocation of the byte arrays might never unleash a garbage collection complete enough to deallocate all marker objects, so to bring the track count to zero. Believe me, it's not only theory .

        Activity

        Sebastiano Vigna created issue -
        Henri Yandell made changes -
        Field Original Value New Value
        Fix Version/s 1.5 [ 12313370 ]
        Hide
        Niall Pemberton added a comment -

        I have copied the code from BeanUtils MemoryLeakTestCase to try and force garbage collection. Hopefully that will be more successful in ytour environment, but if not then it should now throw an exception rather than hanging

        http://svn.apache.org/viewvc?view=rev&revision=723153

        Show
        Niall Pemberton added a comment - I have copied the code from BeanUtils MemoryLeakTestCase to try and force garbage collection. Hopefully that will be more successful in ytour environment, but if not then it should now throw an exception rather than hanging http://svn.apache.org/viewvc?view=rev&revision=723153
        Niall Pemberton made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 2.0 [ 12312961 ]
        Assignee Niall Pemberton [ niallp ]
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.5 [ 12313370 ]
        Henri Yandell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Workflow jira [ 12427907 ] Default workflow, editable Closed status [ 12601836 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        246d 2h 24m 1 Niall Pemberton 04/Dec/08 00:07
        Resolved Resolved Closed Closed
        594d 16h 53m 1 Henri Yandell 21/Jul/10 18:00

          People

          • Assignee:
            Niall Pemberton
            Reporter:
            Sebastiano Vigna
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development