This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: dl_iterate_phdr() deadlock patch


Hi,

On Tue, 2003-02-25 at 21:19, Boehm, Hans wrote:
> Request: could someone who has seen the dl_iterate_phdr() deadlocks
> test this berfore I check it in?

I was seeing this with the SyncTest running under gij and with Eclipse.
Sadly Eclipse doesn't seem to run anymore with recent gcj, I haven't
figured out yet what goes wrong, but it has nothing todo with this
patch. 

SyncTest doesn't deadlock anymore with this patch. But for reasons
outlined in http://gcc.gnu.org/ml/java/2003-01/msg00297.html this test
is now so slow that it will always timeout. For my tests I decreased the
counter from 1 milion to 100,000 (with 4 threads) and then it still
takes 20 minutes to complete. But at least it completes.

I am not sure what todo about the test. We can follow the suggestion of
Jeff Sturm and move the SyncTest.class contruct out of the for loop.

But the real problem is that a simple program like the following takes
   0.050s    with gij 3.2, but
  21.410s(!) with gij 3.3

public class CFN
{
  public static void main(String[] args) throws Exception
  {
    for (int i = 0; i < 5000; i++)
      Class.forName("CFN");
  }
}

Need to investigate what contributes to this slowdown.

Cheers,

Mark


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]