Skip to Content.
Sympa Menu

sphenix-tracking-l - Re: [Sphenix-tracking-l] Reset in coresoftware/offline/packages/trackbase/TrkrClusterHitAssocv3.cc

sphenix-tracking-l AT lists.bnl.gov

Subject: sPHENIX tracking discussion

List archive

Chronological Thread  
  • From: Anthony Frawley <afrawley AT fsu.edu>
  • To: sphenix-tracking <sphenix-tracking-l AT lists.bnl.gov>, pinkenburg <pinkenburg AT bnl.gov>
  • Subject: Re: [Sphenix-tracking-l] Reset in coresoftware/offline/packages/trackbase/TrkrClusterHitAssocv3.cc
  • Date: Sat, 5 Nov 2022 21:15:15 +0000

Hi Chris,

Yes, that was the recommended way to get the system to give back the memory when you clear a map. It has been a while but, if I remember correctly, it did stop the problem wed were having with memory growth between events.

Looking at it, this is a map containing pointers to another map. It looks like gcc12 is complaining that the pointers to the deleted map entries are not handled correctly. I will look at it tonight.

Tony

From: sPHENIX-tracking-l <sphenix-tracking-l-bounces AT lists.bnl.gov> on behalf of pinkenburg via sPHENIX-tracking-l <sphenix-tracking-l AT lists.bnl.gov>
Sent: Saturday, November 5, 2022 10:05 AM
To: sphenix-tracking <sphenix-tracking-l AT lists.bnl.gov>
Subject: [Sphenix-tracking-l] Reset in coresoftware/offline/packages/trackbase/TrkrClusterHitAssocv3.cc
 
Hi folks,

gcc 12 gives a warning about dangling pointers in the Reset method of
this class from the local map (thismap and empty_map). It looks like an
attempt to force the freeing of memory allocated by the map (can we test
if this actually works?), but given the compiler warning I would propose
to look for another solution.

Right now the warning will be suppressed in the configure.ac
(-Wno-dangling-pointer) to get this code through

Chris

--
*************************************************************

Christopher H. Pinkenburg       ;    pinkenburg AT bnl.gov
                                ;    https://urldefense.com/v3/__http://www.phenix.bnl.gov/*pinkenbu__;fg!!PhOWcWs!3odMp2t3z9AMdPIkMcaI0gFgCgwi_eALiZ-lB5stfeZCaPf8XIvmMLxMufYVkMiAuS3BS7KMxBQ7t8hJzgruGah1B6YGUFAx5A$

Brookhaven National Laboratory  ;    phone: (631) 344-5692
Physics Department Bldg 510 C   ;    fax:   (631) 344-3253
Upton, NY 11973-5000

*************************************************************

_______________________________________________
sPHENIX-tracking-l mailing list
sPHENIX-tracking-l AT lists.bnl.gov
https://urldefense.com/v3/__https://lists.bnl.gov/mailman/listinfo/sphenix-tracking-l__;!!PhOWcWs!3odMp2t3z9AMdPIkMcaI0gFgCgwi_eALiZ-lB5stfeZCaPf8XIvmMLxMufYVkMiAuS3BS7KMxBQ7t8hJzgruGah1B6ay9N6raw$



Archive powered by MHonArc 2.6.24.

Top of Page