Summary: | Possible performance improvement | ||
---|---|---|---|
Product: | TAO | Reporter: | Nanbor Wang <bczar> |
Component: | ORB | Assignee: | DOC Center Support List (internal) <tao-support> |
Status: | RESOLVED INVALID | ||
Severity: | enhancement | ||
Priority: | P3 | ||
Version: | 1.5.2 | ||
Hardware: | All | ||
OS: | All | ||
Bug Depends on: | 2241 | ||
Bug Blocks: | 2181 |
Description
Nanbor Wang
2006-08-08 04:10:40 CDT
Reported by Johnny but forgot to logout first fixed summary The dummy TAO::Collocation_Proxy_Broker pointer value "0xdead" should probably be changed so that something like a "null" proxy broker object (not a pointer!) is used instead. This is necessary to prevent a crash under configurations where direct collocation is disabled in the TAO_IDL generated skeletons but selected as the collocation strategy by the user at run-time. Here's the ChangeLog that explains why the 0xdead dummy value was introduced: Tue Mar 8 22:08:49 2005 Ossama Othman <ossama@...> ... * TAO_IDL/be/be_visitor_interface/interface_sh.cpp: * TAO_IDL/be/be_visitor_interface/interface_ss.cpp: Only generate a strategized proxy broker for the direct collocation case. A strategized proxy broker isn't needed for the thru-POA collocated case. Reduces skeleton footprint by approximately 2.5Kb per interface. Generate a dummy collocation proxy broker factory function in the thru-POA collocation case that returns a dummy TAO::Collocation_Proxy_Broker pointer (i.e. "0xdead"). The collocation code in TAO's ORB_Core still detects collocation availability by checking for a non-zero pointer. That value will not be used for the thru-POA case. A valid collocation proxy broker factory function is still generated for the direct collocation case. It turns out the 0xdead issue is already captured in bug 2241. Seems more work on this, Ossama, any ideas on moving the setup_collication into the first if? can't move the call into the if, closing this one |