Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Art Yerkes" <ayerkes@gmvnetwork.com>
To: <caml-list@inria.fr>
Subject: [Caml-list] roots.c -- oldify_local_roots
Date: Sat, 26 Jan 2002 23:43:37 -0000	[thread overview]
Message-ID: <200201262343.g0QNhbh32555@mail.genxnet.com> (raw)

In oldify_local_roots, on line 137, there is an assumption
that no frame_descriptor is NULL.  For the kernel port, I
put a NULL check in here because I was panicing in the 
d->retaddr dereference.  If I understand correctly, it is
'alright' for me to put a null check in here, because ordinarily
the elements of frame_descriptor are filled with values from
caml_frametable, which seems to be generated at compile time.
Remember that there is a rather odd compilation line that makes
this go, which I admit is probably to blame for making the rest
work the wrong way, but I am interested in understanding the 
process of oldify_local_roots a bit better, including the role
of the frame_descriptors, which seem to point (if I am correct)
to the stack frames used by caml functions.

Do I understand this correctly?  A null frame_descriptor seems to
me to indicate a frame created by an improperly wrapped call.
(no CAMLparam(n)).  Does this really harm anything though?
-- 
#define ENOTSUP      48      /* Operation not supported                */
#define ENOTKANSTOTO 49      /* Not in kansas anymore, Toto            */
#define EBADE        50      /* Invalid exchange                       */



-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


             reply	other threads:[~2002-01-26 23:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-26 23:43 Art Yerkes [this message]
2002-01-30 20:24 ` Xavier Leroy

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=200201262343.g0QNhbh32555@mail.genxnet.com \
    --to=ayerkes@gmvnetwork.com \
    --cc=caml-list@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