classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] [RFA/JDWP] IdManager


From: Keith Seitz
Subject: [cp-patches] [RFA/JDWP] IdManager
Date: Mon, 20 Jun 2005 07:57:32 -0700

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  <address@hidden>

        * gnu/classpath/jdwp/id/IdManager.java: New file.

Keith

Attachment: jdwp-idmanager.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]