harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <g...@pobox.com>
Subject Re: [drlvm] Thread me tender, thread me true, never throw an OOM...
Date Tue, 17 Oct 2006 13:41:51 GMT
No way - I shouldn't have to any extra stuff to create more than 340 
threads before DRLVM falls over.

I'm convinced there's something odd about Ubuntu...

geir


Artem Aliev wrote:
> "-Dvm.finalize=off" also help :)
> 
> 
> 
> On 10/17/06, Weldon Washburn <weldonwjw@gmail.com> wrote:
>> Geir,
>> I am running Test.java on windows with an svn revision from late last 
>> week.
>> Right now, it is at "Iteration: 1400000" and still going.  Because of 
>> MMTk
>> porting, GCV4.0 is configured in.  Perhaps you can try with GCV4.0 to 
>> narrow
>> down where the bug is?
>>
>>
>> On 17 Oct 2006 16:14:58 +0700, Egor Pasko <egor.pasko@gmail.com> wrote:
>> >
>> > On the 0x205 day of Apache Harmony Geir Magnusson, Jr. wrote:
>> > > So, with
>> > > > public class Test implements Runnable {
>> > > >     static int i = 0;
>> > > >     public void run() {
>> > > >         try {
>> > > >             Thread.sleep(1);
>> > > >         } catch (Throwable e) {             e.printStackTrace();
>> > > >         }
>> > > >     }
>> > > >     Test() {
>> > > >         new Thread(this).start();
>> > > >     }
>> > > >     public static void main(String args[]) {
>> > > >         for(;;) {
>> > > >           i++;
>> > > >           if (i % 1000 == 0) {
>> > > >                 System.out.println("Iteration: " + i);
>> > > >           }
>> > > >           new Test();
>> > > >         }
>> > > >     }
>> > > > }
>> > >
>> > > How far do you get? I get to 340...  and then OOM.  Why are 
>> threads so
>> > > heavy?
>> >
>> > 4435000 on SUSE9 with:
>> > object_handles.cpp:270: ObjectHandlesNew*
>> > oh_add_new_handles(ObjectHandlesNew**): Assertion `n' failed
>> >
>> > Jrockit gave no more than 405000. Even more interesting...
>> >
>> > --
>> > Egor Pasko, Intel Managed Runtime Division
>> >
>> >
>> > ---------------------------------------------------------------------
>> > Terms of use : http://incubator.apache.org/harmony/mailing.html
>> > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
>> > For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>> >
>> >
>>
>>
>> -- 
>> Weldon Washburn
>> Intel Middleware Products Division
>>
>>
> 
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
> 

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message