Message: Re: Who's responsible for deletion of hits and hits collection objects? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: Who's responsible for deletion of hits and hits collection objects? 

Keywords: deletion of hit and hits collection objects
Forum: Hits, Digitization and Pileup
Re: Question Who's responsible for deletion of hits and hits collection objects? (Kazuyoshi Furutaka)
Re: None Re: Who's responsible for deletion of hits and hits collection objects? (Makoto Asai)
Date: 10 Mar, 2005
From: Kazuyoshi Furutaka <Kazuyoshi Furutaka>

Dear Asai-san and all others,

> All HitsCollection objects and individual hits stored in them are
> for sure deleted when G4Event is deleted at the very end of one event.
> One potential source of memery leak is in your hit class which
> instantiate something but does not delete it in the destructor of 
> your hit class. 

Thanks for the valuable information and your kindness to guide me.

I'm glad to hear we can leave the task of Hits & HitsCollection deletion
to the toolkit.

Sad thing is, the exampleN0[235] as well as A01app, when run with
hundreds of millions of events, too are always killed by oom-killer
on my linux system (Fedora Core3, kernel 2.6.10-1.770_FC3, gcc-3.2.4,
libstdc++-3.4.2), and I think something is wrong...
(I'm interested in the response functions of detectors such as Ge and
BGO to several-MeV gamma rays and high statistics is essential)

`valgrind --tool=memcheck --leak-check=yes exampleN02`
yields the following summary:
    ==6985== LEAK SUMMARY:
    ==6985==    definitely lost: 800 bytes in 49 blocks.
    ==6985==    possibly lost:   136097 bytes in 3201 blocks.
    ==6985==    still reachable: 885777 bytes in 5833 blocks.
    ==6985==         suppressed: 200 bytes in 1 blocks.
(I'm not familier with the tool...)

Yours,
Kazuyoshi

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Who's responsible for deletion of hits and hits collection objects?   (michel maire - 11 Mar, 2005)
(_ None: Re: Who's responsible for deletion of hits and hits collection objects?   (Kazuyoshi Furutaka - 11 Mar, 2005)
(_ Note: Re: Who's responsible for deletion of hits and hits collection objects?   (Kazuyoshi Furutaka - 13 Mar, 2005)
 Add Message Add Message
to: "Re: Who's responsible for deletion of hits and hits collection objects?"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]