Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[trace] dump previous events because container is about to be destroyed
authorschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 29 Dec 2010 11:38:04 +0000 (11:38 +0000)
committerschnorr <schnorr@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 29 Dec 2010 11:38:04 +0000 (11:38 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9333 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/instr/instr_paje.c

index 98cbc47..275b57d 100644 (file)
@@ -265,6 +265,9 @@ void destroyContainer (container_t container)
   //trace my destruction
   new_pajeDestroyContainer(container);
 
   //trace my destruction
   new_pajeDestroyContainer(container);
 
+  //obligation to dump previous events because they might
+  //reference the container that is about to be destroyed
+  TRACE_last_timestamp_to_dump = surf_get_clock();
   TRACE_paje_dump_buffer();
 
   //free
   TRACE_paje_dump_buffer();
 
   //free