[Dune] [#645] Review and apply ArrayList patch

Dune dune at dune-project.org
Thu Dec 3 18:24:39 CET 2009


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#645 - Review and apply ArrayList patch
User who did this - Oliver Sander (sander)

----------
Actually, valgrind reports leaks also for the unpatched arraylisttest, which uses the old SmartPointer class.

==2981== 24 bytes in 3 blocks are still reachable in loss record 1 of 3                                                                      
==2981==    at 0x40253C5: operator new(unsigned int) (vg_replace_malloc.c:214)                                                               
==2981==    by 0x804B61F: Dune::SmartPointer<std::array<double, 100u> >::SmartPointer() (smartpointer.hh:110)                                
==2981==    by 0x804BAC7: Dune::ArrayList<double, 100, std::allocator<double> >::push_back(double const&) (arraylist.hh:492)
==2981==    by 0x804C83D: void randomizeList<double, 100>(Dune::ArrayList<double, 100, std::allocator<double> >&) (arraylisttest.cc:36)
==2981==    by 0x80495AE: main (arraylisttest.cc:178)
==2981==
==2981== 400 bytes in 1 blocks are still reachable in loss record 2 of 3
==2981==    at 0x40253C5: operator new(unsigned int) (vg_replace_malloc.c:214)
==2981==    by 0x804B095: __gnu_cxx::new_allocator<Dune::SmartPointer<std::array<double, 100u> > >::allocate(unsigned int, void const*) (new_allocator.h:92)
==2981==    by 0x804B0BF: std::_Vector_base<Dune::SmartPointer<std::array<double, 100u> >, std::allocator<Dune::SmartPointer<std::array<double, 100u> > > >::_M_allocate(unsigned int) (stl_vector.h:144)
==2981==    by 0x804B3B3: Dune::SmartPointer<std::array<double, 100u> >* std::vector<Dune::SmartPointer<std::array<double, 100u> >, std::allocator<Dune::SmartPointer<std::array<double, 100u> > > >::_M_allocate_and_copy<std::move_iterator<Dune::SmartPointer<std::array<double, 100u> >*> >(unsigned int, std::move_iterator<Dune::SmartPointer<std::array<double, 100u> >*>, std::move_iterator<Dune::SmartPointer<std::array<double, 100u> >*>) (stl_vector.h:904)
==2981==    by 0x804B47E: std::vector<Dune::SmartPointer<std::array<double, 100u> >, std::allocator<Dune::SmartPointer<std::array<double, 100u> > > >::reserve(unsigned int) (vector.tcc:79)
==2981==    by 0x804B5CB: Dune::ArrayList<double, 100, std::allocator<double> >::ArrayList() (arraylist.hh:463)
==2981==    by 0x80495A3: main (arraylisttest.cc:176)
==2981==
==2981== 2,400 bytes in 3 blocks are still reachable in loss record 3 of 3
==2981==    at 0x40253C5: operator new(unsigned int) (vg_replace_malloc.c:214)
==2981==    by 0x804B0EC: Dune::SmartPointer<std::array<double, 100u> >::PointerRep::PointerRep() (smartpointer.hh:93)
==2981==    by 0x804B62D: Dune::SmartPointer<std::array<double, 100u> >::SmartPointer() (smartpointer.hh:110)
==2981==    by 0x804BAC7: Dune::ArrayList<double, 100, std::allocator<double> >::push_back(double const&) (arraylist.hh:492)
==2981==    by 0x804C83D: void randomizeList<double, 100>(Dune::ArrayList<double, 100, std::allocator<double> >&) (arraylisttest.cc:36)
==2981==    by 0x80495AE: main (arraylisttest.cc:178)
==2981==
==2981== LEAK SUMMARY:
==2981==    definitely lost: 0 bytes in 0 blocks
==2981==    indirectly lost: 0 bytes in 0 blocks
==2981==      possibly lost: 0 bytes in 0 blocks
==2981==    still reachable: 2,824 bytes in 7 blocks
==2981==         suppressed: 0 bytes in 0 blocks

----------

More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=645#comment1446

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.




More information about the Dune mailing list