On 12 Oct 2009, at 8:44 AM, Igor Peshansky wrote:

> Jim LaGrone <jlagr...@cs.uh.edu> wrote on 10/09/2009 06:16:40 PM:
>
>> I receiving the following message during execution with the C++
>> backend, but not Java backend. Any help would be appreciated...
>>
>> GC Warning: Repeated allocation of very large block (appr. size  
>> 282624):
>>   May lead to memory leak and poor performance.
>
> Jim,
>
> This is a message from the GC library that we use for the C++
> backend.  It may be a legitimate warning, in that the code is
> actually doing a large allocation in a loop.  The JVM will not
> warn you about something like this, but it doesn't mean it is
> not happening there.
>
> Check your loops to see if you are creating a large object
> (e.g., a Rail/ValRail).  If you are, consider hoisting the
> allocation out of the loop.  It would help to see the loop
> that does the allocation, so that we are talking about the
> same things.
>        Igor

Here is the loop:

        finish ateach ( (j,i): Point in region ){
          var real: Double = 0;
          var imag: Double = 0;
          for( var k:Int = 0; k < ny; k++ ){
            val l = (j*k)%ny;
            real = real + p(k,i).real*cos_value(l) + p(k,i).imag*sin_value(l);
            imag = imag + p(k,i).imag*cos_value(l) - p(k,i).real*sin_value(l);
          }
          temp_p(j,i) = new Complex (real,imag );
        }


I receive the GC warning on CentOS running in VMWare Fusion on a  
Macbook Pro. I do not get the warning on a cluster using mpiexec to  
begin execution.

Jim

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to