[jhc] Threading and atoms.

Lemmih lemmih at gmail.com
Fri Feb 22 17:29:41 EST 2008


On Fri, Feb 22, 2008 at 10:45 PM, John Meacham <john at repetae.net> wrote:
> On Fri, Feb 22, 2008 at 10:33:07PM +0100, Lemmih wrote:
>  > When I use -threaded and -N2 in jhc, atoms fail in spectacular ways.
>  > So far I've seen:
>  > >>> internal error:
>  > fullCheck': Instance at .iJhc.Monad.return.Jhc.Prim.IO x6598
>  > Strong': ? x6598
>  > Cannot strong:
>  > (?, [x6598])
>
>  This is the RULES thing I was telling you about earlier. you need to
>  compile -fno-rules for now or unpull my recent patches. (expect things to be slow without rules)

Most of what you were telling me went over my head, I'm afraid. (:

>  > and:
>  > stringlib: error alocating memory
>  >
>  >
>  > Are atoms in some way not thread-safe enough?
>
>  and you need to #define USE_THREADS to 1 in
>  StringTable/StringTable_cbits.c

Ah, good.

-- 
Cheers,
 Lemmih


More information about the jhc mailing list