unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Critical section review
@ 2005-03-23  8:16 Neil Jerram
  2005-03-23  8:58 ` Mikael Djurfeldt
  2005-03-23  9:02 ` Mikael Djurfeldt
  0 siblings, 2 replies; 8+ messages in thread
From: Neil Jerram @ 2005-03-23  8:16 UTC (permalink / raw)


OK, to get the ball rolling and fill in my understanding: 
scm_make_memoized() in debug.c has:

   SCM_CRITICAL_SECTION_START;
   SCM_NEWSMOB (z, SCM_UNPACK (exp), SCM_UNPACK (env));
   SCM_NEWSMOB (ans, scm_tc16_memoized, SCM_UNPACK (z));
   SCM_CRITICAL_SECTION_END;

So:

- why do we need a critical section here?

- given that there is a critical section here, isn't there a problem 
that one of the SCM_NEWSMOBs could throw a memory error?

(I have read what it says in the manual on critical sections, by the way.)

Regards,
	Neil


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-03-30 18:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-23  8:16 Critical section review Neil Jerram
2005-03-23  8:58 ` Mikael Djurfeldt
2005-03-23  9:02 ` Mikael Djurfeldt
2005-03-23 20:19   ` Neil Jerram
2005-03-23 20:35     ` Mikael Djurfeldt
2005-03-23 21:34     ` Marius Vollmer
2005-03-24  7:30       ` Neil Jerram
2005-03-30 18:46         ` Neil Jerram

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).