> I have an moderately size x10 program (~3000 lines) that I am trying
> to profile and optimize.  Normally it compiles reasonably (takes a
> couple of minutes) but if I try to compile with the -OPTIMIZE flag
> the compiler runs for about 20 minutes and crashes with a heap space
> exception.  Does anyone know why this problem might occur and how
> one might with it?

The first workaround would be to hack the x10c script to use more than the
default 1G heap size for the JVM (look for the -Xmx argument at the bottom
of the script).

That being said, we should be able to compile a 3000 lines in a gig.  Is
there something unusual (lots of @Inline pragmas?  Entire 3000 lines in a
single file?) that might be triggering pathological behavior?

--dave
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to