a-fihema.ads, [...] (Finalization_Collection): Avoid heap allocation for Objects...
authorBob Duff <duff@adacore.com>
Fri, 5 Aug 2011 14:09:33 +0000 (14:09 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 5 Aug 2011 14:09:33 +0000 (16:09 +0200)
commit7882673f4c6036951fbaea9bb23975f250587c01
tree95d9fe2f3f2d0672a147fa18ad64ca7c091f73fb
parentd34cd27401917a9b85e7ad5ac2cbca62bbc458cc
a-fihema.ads, [...] (Finalization_Collection): Avoid heap allocation for Objects component.

2011-08-05  Bob Duff  <duff@adacore.com>

* a-fihema.ads, a-fihema.adb (Finalization_Collection): Avoid heap
allocation for Objects component. This simplifies the code somewhat. It
is also a little more efficient in the not-so-unusual case where there
are no controlled objects allocated.
Make Finalization_Started flag atomic.
(Finalize): Avoid unnecessary detachment of items from the list.
(pcol): Minor cleanup.

From-SVN: r177439
gcc/ada/ChangeLog
gcc/ada/a-fihema.adb
gcc/ada/a-fihema.ads