From: Jonathan Roewen <jonathan.roewen@gmail.com>
To: caml-list@yquem.inria.fr
Subject: [Caml-list] caml_callback_depth : byterun + vmthreads
Date: Sun, 18 Dec 2005 15:48:44 +1300 [thread overview]
Message-ID: <ad8cfe7e0512171848g6e559458sc33bd6b08d09fa47@mail.gmail.com> (raw)
Hi,
I found this bit of code in vmthreads/scheduler.c:
/* Don't allow preemption during a callback */
if (callback_depth > 1) return curr_thread->retval;
I've done some grepping, and I can find one instance of
[caml_]callback_depth++ (as far as I can tell, this is done once
only), and two instances of [caml_]callback_depth--. These are both in
byterun/interp.c. No where else is this value modified that I can
find, which has got me baffled.
It is the check above that is killing my OS (it never schedules
another thread). This also happens randomly.
Can some one please explain what the hell is going on?
Jonathan
next reply other threads:[~2005-12-18 2:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-18 2:48 Jonathan Roewen [this message]
2005-12-18 3:11 ` Jonathan Roewen
2005-12-18 4:20 ` Jonathan Roewen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ad8cfe7e0512171848g6e559458sc33bd6b08d09fa47@mail.gmail.com \
--to=jonathan.roewen@gmail.com \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox