Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: mishkin@atria.com (Nathaniel Mishkin)
Subject: Re: What is volatile data type in DCE?
Date: Sat, 22 Oct 1994 02:52:48 GMT	[thread overview]
Message-ID: <Cy2001.n3M@atria.com> (raw)
In-Reply-To: CxzB5q.7wJ@undergrad.math.uwaterloo.ca

Yuh Ming YONG (ymyong@neumann.uwaterloo.ca) wrote:
: I notice that in DCE client's stub code the call handle is
: declared as having a volatile data type as follows:

: volatile rpc_call_handle_t call_h = NULL;


: Could anyone tell me the significant or meaning of volatile
: data type?  Thank you very much.

"volatile" is an ANSI C keyword that the RPC code uses in an attempt
to keep the C compiler from homing the variable in a register.  It
wants it not in a register since the variable is used along an
exception path--i.e., it may be reached by a call to longjmp() having
been made--and it doesn't trust the compiler (which is often not aware
of what longjmp() does to registers) to not mess things up.

--
                -- Nat Mishkin
                   Atria Software, Inc.
                   mishkin@atria.com


      reply	other threads:[~1994-10-22  2:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-10-20 16:01 What is volatile data type in DCE? Yuh Ming YONG
1994-10-22  2:52 ` Nathaniel Mishkin [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox