On Jan 20, 10:38 am, Perry Trolard <trol...@gmail.com> wrote:
> But I don't think lazyness is the problem:
>
> user=> (def r (doall (map inc (range 1000000))))
> #'user/r
> user=> (count r)
> 1000000
> user=> (pmap inc [0])
> java.lang.OutOfMemoryError: Java heap space (NO_SOURCE_FILE:0)

Hm, that's funny, the latter works just fine for me: it returns (1).
With what options are you starting java? and what JVM is it?  "java -
version" on my machine (Linux x86_64) returns

java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) 64-Bit Server VM (build 11.0-b15, mixed mode)

and I start java with the following options (not counting the
classpath):

java -server -Xdebug -
Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8888

mfh
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to