[RFA/JDWP] IdManager
Keith Seitz
keiths@redhat.com
Mon Jun 20 15:09:00 GMT 2005
Hi,
Okay, after the questions raised about ReferenceKey, I think I'm just
going to submit this and get opinions.
This class manages all the IDs that get assigned in the back-end and
sent to the debugger. There are two sides to this coin: one used by the
back-end to get IDs for objects and one used by the processor package to
get objects associated with IDs.
For an event notification, for example, might need the ThreadId of the
thread in which the event occurred. To do this, it would call the
IdManager's getId method, which will return the ID for the thread or
create a new ID for it.
Similarly, when the packet processor (or some other class in that
package) needs an object for a given ID, it can either call get (long)
or readId (DataInputStream) to get the ObjectId of the object. That can
then be used to get the desired object.
Comments/questions/concerns?
Keith
ChangeLog
2005-06-20 Keith Seitz <keiths@redhat.com>
* gnu/classpath/jdwp/id/IdManager.java: New file.
Keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jdwp-idmanager.patch
Type: text/x-patch
Size: 7311 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20050620/1f0764a5/attachment.bin>
More information about the Java-patches
mailing list