<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.jacorb.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://www.jacorb.org/bugzilla/"
          
          maintainer="jacorb@goots.org"
>

    <bug>
          <bug_id>527</bug_id>
          
          <creation_ts>2004-10-21 16:39:01 +0000</creation_ts>
          <short_desc>Thread creation during deactivate_object</short_desc>
          <delta_ts>2010-03-04 14:55:50 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>JacORB</product>
          <component>POA</component>
          <version>2.2</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>801</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kevin Conner">Kevin.Conner</reporter>
          <assigned_to name="Gerald Brose">gerald.brose</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1188</commentid>
    <comment_count>0</comment_count>
    <who name="Kevin Conner">Kevin.Conner</who>
    <bug_when>2004-10-21 16:39:01 +0000</bug_when>
    <thetext>The deactiviation of an object causes Thread creation in AOM.remove.  Would it
be possible to use a thread pool instead of creating new threads?

A possible solution could be to have the RequestController provide a
notification mechanism (instead of a thread waiting on object completion) and
have the notification request work from the thread pool.

The attached patch uses a threadpool to prevent the thread creation but I don&apos;t
believe it is the best solution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1189</commentid>
    <comment_count>1</comment_count>
      <attachid>90</attachid>
    <who name="Kevin Conner">Kevin.Conner</who>
    <bug_when>2004-10-21 16:39:37 +0000</bug_when>
    <thetext>Created attachment 90
example workaround</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1941</commentid>
    <comment_count>2</comment_count>
    <who name="Nick Cross">rnc</who>
    <bug_when>2006-09-07 18:35:15 +0000</bug_when>
    <thetext>A possible issue with doing this is that when thread pool reaches the limit it
will block which I think breaks the spec which says that deactivate should
return immediately.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1942</commentid>
    <comment_count>3</comment_count>
    <who name="Kevin Conner">Kevin.Conner</who>
    <bug_when>2006-09-07 20:49:33 +0000</bug_when>
    <thetext>It has been a while since I looked at this code but, IIRC, the whole point of
the thread/thread pool was to allow the deactivate call to return immediately. 
It allowed certain processing to be deferred until there were no references.

I did implement the notification mechanism and this was much cleaner.  The code
has probably moved on since that was done but I could try and dig it out and
update it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2335</commentid>
    <comment_count>4</comment_count>
    <who name="Nick Cross">rnc</who>
    <bug_when>2008-11-13 17:10:24 +0000</bug_when>
    <thetext>Patch is available on 801 although still needs to be applied to CVS.

*** This bug has been marked as a duplicate of bug 801 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2563</commentid>
    <comment_count>5</comment_count>
      <attachid>90</attachid>
    <who name="Jodi Davis">jodi</who>
    <bug_when>2010-03-04 14:54:06 +0000</bug_when>
    <thetext>Comment on attachment 90
example workaround

&lt;a href=&quot;http://www.research-service.com/&quot;&gt;research paper&lt;/a&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2564</commentid>
    <comment_count>6</comment_count>
      <attachid>90</attachid>
    <who name="Jodi Davis">jodi</who>
    <bug_when>2010-03-04 14:55:50 +0000</bug_when>
    <thetext>Comment on attachment 90
example workaround

[url=http://www.research-service.com/]research paper[/url]</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>90</attachid>
            <date>2004-10-21 16:39:37 +0000</date>
            <delta_ts>2004-10-21 16:39:37 +0000</delta_ts>
            <desc>example workaround</desc>
            <filename>patch.txt</filename>
            <type>text/plain</type>
            <size>1973</size>
            <attacher name="Kevin Conner">Kevin.Conner</attacher>
            
              <data encoding="base64">SW5kZXg6IEFPTS5qYXZhCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9jdnNyb290L2phY29yYi9KYWNP
UkIvc3JjL29yZy9qYWNvcmIvcG9hL0FPTS5qYXZhLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjI5
CmRpZmYgLXUgLXIxLjI5IEFPTS5qYXZhCi0tLSBBT00uamF2YQk2IE1heSAyMDA0IDEyOjQwOjAw
IC0wMDAwCTEuMjkKKysrIEFPTS5qYXZhCTIxIE9jdCAyMDA0IDE0OjM4OjExIC0wMDAwCkBAIC0y
Nyw2ICsyNyw5IEBACiBpbXBvcnQgb3JnLmphY29yYi5wb2EudXRpbC5CeXRlQXJyYXlLZXk7CiBp
bXBvcnQgb3JnLmphY29yYi5wb2EudXRpbC5QT0FVdGlsOwogaW1wb3J0IG9yZy5qYWNvcmIucG9h
LnV0aWwuU3RyaW5nUGFpcjsKK2ltcG9ydCBvcmcuamFjb3JiLnV0aWwudGhyZWFkcG9vbC5Db25z
dW1lcjsKK2ltcG9ydCBvcmcuamFjb3JiLnV0aWwudGhyZWFkcG9vbC5Db25zdW1lckZhY3Rvcnk7
CitpbXBvcnQgb3JnLmphY29yYi51dGlsLnRocmVhZHBvb2wuVGhyZWFkUG9vbDsKIAogaW1wb3J0
IG9yZy5vbWcuUG9ydGFibGVTZXJ2ZXIuUE9BUGFja2FnZS5PYmplY3RBbHJlYWR5QWN0aXZlOwog
aW1wb3J0IG9yZy5vbWcuUG9ydGFibGVTZXJ2ZXIuUE9BUGFja2FnZS5PYmplY3ROb3RBY3RpdmU7
CkBAIC02OSw2ICs3MiwyMyBAQAogICAgIC8qKiBhIGxvY2sgdG8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2FfID0gcG9hOwogICAgICAgICBmaW5hbCBib29sZWFuIGNsZWFudXBJblByb2dy
ZXNzXyA9IGNsZWFudXBJblByb2dyZXNzOwogCi0gICAgICAgIFRocmVhZCB0aHJlYWQgPSBuZXcg
VGhyZWFkKCJBT01fUmVtb3ZhbFRocmVhZCIpCi0gICAgICAgIHsKKyAgICAgICAgZmluYWwgUnVu
bmFibGUgam9iID0gbmV3IFJ1bm5hYmxlKCkgewogICAgICAgICAgICAgcHVibGljIHZvaWQgcnVu
KCkKICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICBfcmVtb3ZlKApAQCAtMzYxLDggKzM4
MCw4IEBACiAgICAgICAgICAgICAgICAgICAgICAgICk7CiAgICAgICAgICAgICB9CiAgICAgICAg
IH07Ci0KLSAgICAgICAgdGhyZWFkLnN0YXJ0KCk7CisgICAgICAgIAorICAgICAgICBkZWFjdGl2
YXRpb25Qb29sLnB1dEpvYihqb2IpIDsKICAgICB9CiAKIAo=
</data>

          </attachment>
      

    </bug>

</bugzilla>