Menu

#7 Memory leak in OpenHashSet<T>

v1.2
open-fixed
Classes (14)
9
2004-07-26
2004-04-20
No

The following code causes an OutOfMemoryException,
where it should definitly not:

IntOpenHashSet set = new IntOpenHashSet();

for (int value = 0; value < 100000000; value++) {
set.add(value);
set.remove(value);
}

Discussion

  • Søren Bak

    Søren Bak - 2004-07-26
    • labels: --> Classes
    • milestone: --> v1.2
    • priority: 5 --> 9
    • assigned_to: nobody --> bak
    • status: open --> open-accepted
     
  • Søren Bak

    Søren Bak - 2004-07-26
    • status: open-accepted --> open-fixed
     
  • Søren Bak

    Søren Bak - 2004-07-26

    Logged In: YES
    user_id=43402

    Patch #938624 has now been included in TOpenHashSet to
    correct Bug #938623. It has also been applied to
    TKeyOpenHashMap and TKeySOpenHashMap.

    The correction will be released in version 1.3.

    Thank you!

     

Log in to post a comment.