[RFA/JDWP] Implement several JDWP callbacks

Keith Seitz keiths@redhat.com
Sun Jan 28 05:49:00 GMT 2007


Keith Seitz wrote:

>> Is there a way we can define jthread == Thread* for internal purposes,
>> so we can get rid of these casts?
> 
> Yeah, we can define _CLASSPATH_VM_JVMTI_TYPES_DEFINED and then redefine 
> the jthread, jthreadGroup, jlocation, and jrawMonitorID any way we like.
> 
> I'll work on a patch.

How about the attached? Makes life much simpler...

Keith

ChangeLog

2007-01-27  Keith Seitz  <keiths@redhat.com>

         * include/jvmti_md.h (_CLASSPATH_VM_JVMTI_TYPES_DEFINED):
         Define.
         [__GCJ_JNI_IMPL__]: Define our own JVMTI types when building
         gcj. All jvmti object types now are defined to be their
         corresponding java classes.
         * jvmti.cc (_Jv_JVMTI_SuspendThread): Remove casting from
         jthread to Thread*.
         (_Jv_JVMTI_ResumeThread): Likewise.
         (_Jv_JVMTI_InterruptThread): Likewise.
         (_Jv_JVMTI_SetEventNotificationMode): Likewise.
         * gnu/classpath/jdwp/natVMVirtualMachine.cc
         (jdwpClassPrepareCB): Likewise.
         (jdwpThreadEndCB): Likewise.
         (jdwpThreadStartCB): Likewise.
         (jdwpVMInitCB): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jvmti-types.patch
Type: text/x-patch
Size: 4130 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20070128/c482fd24/attachment.bin>


More information about the Java-patches mailing list