in reply to Re^2: IPC::Shareable sometimes leaks memory segments
in thread IPC::Shareable sometimes leaks memory segments
clean_up_all : This is a class method that provokes IPC::Shareable to remove all shared memory segments encountered by the process. Segments are removed even if they were not created by the calling process.
Calling remove() on the object underlying a tie()d variable removes the associated shared memory segment. The segment is removed irrespective of whether it has the destroy option set or not and irrespective of whether the calling process created the segment.
specifying the destroy option when tie()ing a variable coerces IPC::Shareable to remove the underlying shared memory segment when the process calling tie() exits gracefully. Note that any related shared memory segments created automagically by the use of references will also be removed.
But this does nothing for me:
$tied = tie %hash, 'IPC::Shareable', { key => 'test', # destroy => 'yes', create => 1 }; IPC::Shareable->clean_up_all; # but this does: # $tied->remove; exit 0;
so I am confused.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: IPC::Shareable sometimes leaks memory segments
by stevieb (Canon) on Jul 09, 2019 at 15:07 UTC | |
|
Re^4: IPC::Shareable sometimes leaks memory segments
by stevieb (Canon) on Jul 09, 2019 at 16:34 UTC | |
|
Re^4: IPC::Shareable sometimes leaks memory segments
by stevieb (Canon) on Jul 09, 2019 at 15:51 UTC |