[RFA/JDWP] JdwpConnection

Keith Seitz keiths@redhat.com
Mon Jun 6 21:42:00 GMT 2005


On Mon, 2005-06-06 at 13:48 -0700, Boehm, Hans wrote:
> But it seemed to
> me that _commandQueue is a Vector, but you always synchronize on
> it before accessing it?  If so, wouldn't ArrayList, which doesn't
> lock internally, make more sense?

Yes, you are right: Vector is synchronized. For some reason, I didn't
think it was (I missed that during my cursory glance of the javadoc). So
either I change to some unsychronized form, or I just whack the
synchronization bits.

I don't think that performance is so critical here, though, so switching
to an ArrayList might be a better choice.

Thanks,
Keith



More information about the Java-patches mailing list