[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Critical section review
From: |
Neil Jerram |
Subject: |
Critical section review |
Date: |
Wed, 23 Mar 2005 08:16:00 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050105 Debian/1.7.5-1 |
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
- Critical section review,
Neil Jerram <=