Re: [java6][deadlock] with parallel classloading, and how to deal with it

2014-03-19 Thread Stefan Egli
Hi, I wrote a test which reproduces the deadlock on Java 6 (MacOS). It's attached to FELIX-4462 ([0]). Unfortunately I only managed to get it fail when running from Eclipse, not via 'mvn clean test'. I had to use byteman to inject a delay in the BundleClassLoader.findClass - and if that inject is

Re: [java6][deadlock] with parallel classloading, and how to deal with it

2014-03-19 Thread Richard S. Hall
On 3/19/14, 10:47 , Stefan Egli wrote: Hi, I wrote a test which reproduces the deadlock on Java 6 (MacOS). It's attached to FELIX-4462 ([0]). Unfortunately I only managed to get it fail when running from Eclipse, not via 'mvn clean test'. I had to use byteman to inject a delay in the

Re: [java6][deadlock] with parallel classloading, and how to deal with it

2014-03-19 Thread Richard S. Hall
On 3/19/14, 11:00 , Richard S. Hall wrote: On 3/19/14, 10:47 , Stefan Egli wrote: Hi, I wrote a test which reproduces the deadlock on Java 6 (MacOS). It's attached to FELIX-4462 ([0]). Unfortunately I only managed to get it fail when running from Eclipse, not via 'mvn clean test'. I had to

Re: [java6][deadlock] with parallel classloading, and how to deal with it

2014-03-19 Thread Richard S. Hall
I just attached a patch to the issue...could you please try it and see if it solves your issue. If so, report back on the issue. Thanks. - richard On 3/19/14, 10:47 , Stefan Egli wrote: Hi, I wrote a test which reproduces the deadlock on Java 6 (MacOS). It's attached to FELIX-4462 ([0]).

Re: [java6][deadlock] with parallel classloading, and how to deal with it

2014-03-17 Thread Richard S. Hall
On 3/14/14, 05:26 , Stefan Egli wrote: Hi, I just ran into the famous deadlock with Java 6 where the same class is being loaded from two different bundles (also see FELIX-3953). This happened on a startup of a CQ instance. I'll add more analysis details but my question is: what is the

Re: [java6][deadlock] with parallel classloading, and how to deal with it

2014-03-17 Thread Stefan Egli
Hi Richard, (see below) On 3/17/14 1:34 PM, Richard S. Hall he...@ungoverned.org wrote: On 3/14/14, 05:26 , Stefan Egli wrote: Hi, I just ran into the famous deadlock with Java 6 where the same class is being loaded from two different bundles (also see FELIX-3953). This happened on a startup

Re: [java6][deadlock] with parallel classloading, and how to deal with it

2014-03-17 Thread Daniel McGreal
Hi, I had classloading blocks on m_classLocks in a JamVM (GNU Classpath) environment. Details in the thread starting at http://mail-archives.apache.org/mod_mbox/felix-dev/201311.mbox/%3c9490d8e7-4fc5-4f6c-b2c2-863d06ecf...@redbite.com%3e . It ended up being solved by 'synchronized'ing

Re: [java6][deadlock] with parallel classloading, and how to deal with it

2014-03-17 Thread Richard S. Hall
On 3/17/14, 09:07 , Stefan Egli wrote: Hi Richard, (see below) On 3/17/14 1:34 PM, Richard S. Hall he...@ungoverned.org wrote: On 3/14/14, 05:26 , Stefan Egli wrote: Hi, I just ran into the famous deadlock with Java 6 where the same class is being loaded from two different bundles (also

[java6][deadlock] with parallel classloading, and how to deal with it

2014-03-14 Thread Stefan Egli
Hi, I just ran into the famous deadlock with Java 6 where the same class is being loaded from two different bundles (also see FELIX-3953). This happened on a startup of a CQ instance. I'll add more analysis details but my question is: what is the suggested best practice to handle this issue?