Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357437 - Provide a specialized IJVMChannel
Summary: Provide a specialized IJVMChannel
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: cdo.net4j (show other bugs)
Version: 4.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Eike Stepper CLA
QA Contact: Eike Stepper CLA
URL:
Whiteboard: Lighter, Faster and Better
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-12 23:49 EDT by Eike Stepper CLA
Modified: 2012-09-21 07:18 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eike Stepper CLA 2011-09-12 23:49:59 EDT
Currently debugging scenarios (like CDO offline replication) with multile connections can be quite tricky because the ChannelMultiplexer.channels map is a ConcurrentHashMap which is not naviable in debug mode. That makes it impossible to follow the JVM pointer chain from one channel to its peer channel.

It's trivial and cheap to store the peer channel pointer directly in the channel:

public interface IJVMChannel extends IChannel
{
  public IJVMChannel getPeer();
}
Comment 1 Eike Stepper CLA 2011-09-12 23:50:49 EDT
Committed revision 9064:
- trunk/plugins/org.eclipse.net4j.jvm
Comment 2 Eike Stepper CLA 2011-09-12 23:51:13 EDT
Committed revision 9064
Comment 3 Eike Stepper CLA 2012-09-21 07:18:58 EDT
Closing.