English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] In need of serious help regarding threading
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-08-19 (04:01)
From: Jonathan Roewen <jonathan.roewen@g...>
Subject: Re: [Caml-list] In need of serious help regarding threading
It appears (with the help of a friend good with a debugger) that
there's something going wrong with my code, and how it's interacting
with the GC.

I have a debug compiled version of my kernel, the disassembly, sources
to the C threading code, and some notes from the guy about the
debugging @ http://moonbeam.purevoid.org/~jonathan/ocaml/

If someone can point out what I'm doing wrong, it'd be the biggest
life-saver I could ever imagine!


On 8/19/05, Jonathan Roewen <jonathan.roewen@gmail.com> wrote:
> Hi,
> I hope someone with experience in the guts of the ocaml systhreads
> package can help me out.
> I've tried adapting the win32_threads.c source in systhreads to work
> with DST. I've implemented a C co-op threading module, which appears
> to function correctly according to the tests I've done.
> However, I can't seem to be able to get ocaml threads to play along
> nicely. I'm out of ideas, and really need some help >_<
> All code is available online (http://glek.net/subversion/os/kernel/)
> and can be checked out with an svn client (using URL above). For
> building, you need to first do make boot (takes a while on lesser
> machines like my PIII 600). Also, I copied hooks.h and signals.h from
> the byterun folder to ocaml/libs/ocaml/caml (needed private values for
> signals.h). And removed the bytecode variants of whatever was present.
> The file with the ocaml threading code is
> http://glek.net/subversion/os/kernel/ocamlthreads.c, and the C co-op
> threading code is http://glek.net/subversion/os/kernel/threads.c
> I would very much appreciate anyone who can take the time to look at
> this, and discover what I'm undoubtedly doing wrong. This is a major
> area of DST to be implemented, and without threading in OCaml, we're
> pretty much stuck in the middle of no-man's land.
> For once this is a legitimate cry for help ;-) I know I've sent some
> stupid, stupid emails in the past....
> Thanks to all willing to help,
> Jonathan