This is the mail archive of the
frysk@sourceware.org
mailing list for the frysk project.
"int pid" replaced with ProcessIdentifier
- From: Andrew Cagney <cagney at redhat dot com>
- To: frysk <frysk at sourceware dot org>
- Date: Thu, 07 Feb 2008 10:51:58 -0500
- Subject: "int pid" replaced with ProcessIdentifier
FYI,
I've pushed a low-level change so that frysk.sys's process code uses a
ProcessIdentifier object instead of "int pid"s; there is one
ProcessIdentifier per "pid". The change is slowly working its way
through frysk.proc.live; it won't be taken further.
The motivation is simple, while "int pid" looks small and efficient; it
turns out that the code using it really needed an object (leaking
something like <<new Integer(pid)>>) to either log or hash the pid.
With a proper object both of these cases can be greatly simplified.
Andrew