From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,115bda8caeda5fa4 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.44.102 with SMTP id d6mr868819pbm.9.1315832479405; Mon, 12 Sep 2011 06:01:19 -0700 (PDT) Path: m9ni4676pbd.0!nntp.google.com!news1.google.com!newsfeed2.dallas1.level3.net!news.level3.com!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Does GNAT support a thread-free RTS? Date: Mon, 12 Sep 2011 09:01:17 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <4E6C8D7D.2020803@obry.net> <9a41811f-086a-4447-a3c7-6144f68c16b4@et6g2000vbb.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 X-Trace: pcls6.std.com 1315832478 21075 192.74.137.71 (12 Sep 2011 13:01:18 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Mon, 12 Sep 2011 13:01:18 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:xZA8YPPfdM8T/p8wpsIeBEeRsyo= Xref: news1.google.com comp.lang.ada:17932 Content-Type: text/plain; charset=us-ascii Date: 2011-09-12T09:01:17-04:00 List-Id: Ludovic Brenta writes: > - sjlj aka setjump/longjump, which is the alternative, in which every > frame > that might possibly raise an exception calls setjmp(3), thus ^^^^^ You meant "handle". > incurring > distributed cost, and raising an exception calls longjmp(3), which > is > cheap compared to the raising of an exception with ZCX. sjlj is the > only > supported run-time system on a few, non-mainstream architectures. Right. ZCX is the "right" way to implement exception handling, because raising exceptions is rare, whereas exception handlers (and finalizable objects) are not-so-rare, so you want to pay the cost on the raise. - Bob