<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Constrained Execution Regions and other errata [Brian Grunkemeyer]</title><link>http://blogs.msdn.com/bclteam/archive/2005/06/14/429181.aspx</link><description>A customer recently asked a good question about some of our new reliability features in Whidbey: There are calls to Thread.BeginCriticalRegion() inside the Hashtable class. Can you clarify why they are used and how this is different from RuntimeHelpers.PrepareConstrainedRegions()</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Constrained Execution Regions and other errata [Brian Grunkemeyer]</title><link>http://blogs.msdn.com/bclteam/archive/2005/06/14/429181.aspx#429518</link><pubDate>Thu, 16 Jun 2005 00:17:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:429518</guid><dc:creator>TAG</dc:creator><description>Thanks for such a helpfull reply !&lt;br&gt;As it's very new functionality - there is not much information about this. &lt;br&gt;&lt;br&gt;You have clarified all issues I had.</description></item><item><title>境界線で踊ろう</title><link>http://blogs.msdn.com/bclteam/archive/2005/06/14/429181.aspx#430027</link><pubDate>Fri, 17 Jun 2005 07:19:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:430027</guid><dc:creator>菊池 Blog</dc:creator><description>境界線で踊ろう</description></item><item><title>Unmanaged Interop chapter</title><link>http://blogs.msdn.com/bclteam/archive/2005/06/14/429181.aspx#437393</link><pubDate>Mon, 11 Jul 2005 08:05:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:437393</guid><dc:creator>`(joe (@ (version "2.0")) ,(mk-blog))</dc:creator><description /></item><item><title>Unmanaged Interop chapter</title><link>http://blogs.msdn.com/bclteam/archive/2005/06/14/429181.aspx#437396</link><pubDate>Mon, 11 Jul 2005 08:07:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:437396</guid><dc:creator>`(joe (@ (version "2.0")) ,(mk-blog))</dc:creator><description /></item><item><title>Unmanaged Interop chapter</title><link>http://blogs.msdn.com/bclteam/archive/2005/06/14/429181.aspx#437399</link><pubDate>Mon, 11 Jul 2005 08:09:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:437399</guid><dc:creator>`(joe (@ (version "2.0")) ,(mk-blog))</dc:creator><description /></item><item><title>Unmanaged Interop chapter</title><link>http://blogs.msdn.com/bclteam/archive/2005/06/14/429181.aspx#437422</link><pubDate>Mon, 11 Jul 2005 10:13:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:437422</guid><dc:creator>`(joe (@ (version "2.0")) ,(mk-blog))</dc:creator><description /></item><item><title>re: Constrained Execution Regions and other errata [Brian Grunkemeyer]</title><link>http://blogs.msdn.com/bclteam/archive/2005/06/14/429181.aspx#438753</link><pubDate>Thu, 14 Jul 2005 15:50:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:438753</guid><dc:creator>Patrick Smacchia</dc:creator><description>Hi, &lt;br&gt;&lt;br&gt;Thanks for these useful infos.&lt;br&gt;I still have a few questions regarding CERs:&lt;br&gt;&lt;br&gt;&lt;br&gt;1) What’s the difference between methods RuntimeHelpers.PrepareConstrainedRegion() ,  RuntimeHelpers.ProbeForSufficientStack() and RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup() since all three define a &amp;quot;Designates a body of code as a Constrained Execution Region (CER)&amp;quot; according to the MSDN.&lt;br&gt;&lt;br&gt;&lt;br&gt;2) In this piece of code, which region won’t get any async exceptions 1,2 or 3? &lt;br&gt;using System.Runtime.CompilerServices;&lt;br&gt;[ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]&lt;br&gt;public void SomeMethod() {&lt;br&gt;    /*  0  */&lt;br&gt;    RuntimeHelpers.PrepareConstrainedRegions();&lt;br&gt;    try       {/*  1  */}&lt;br&gt;    catch(..) {/*  2  */}&lt;br&gt;    finally   {/*  3  */}&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;br&gt;3) In the previous piece of code, where are we supposed to prepare eagerly with methods such as RuntimeHelpers.PrepareMethod(), RuntimeHelpers.PrepareDelegate() and RuntimeHelpers.RunClassConstructor()?&lt;br&gt;&lt;br&gt;&lt;br&gt;4) Does the ReliabilityContract attributes may influence in any way:&lt;br&gt;--&amp;gt;the C# compiler (warnings/errors) &lt;br&gt;--&amp;gt;the CLR &lt;br&gt;--&amp;gt;the runtime host (in case of an unhandled exception)&lt;br&gt;or is it dedicated purely to documentation purposes?&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks for your help and keep on the good work!!&lt;br&gt;Patrick Smacchia&lt;br&gt;MVP.NET&lt;br&gt;&lt;br&gt;</description></item><item><title>How to use SafeHandle in a Resilient Library [Brian Grunkemeyer]</title><link>http://blogs.msdn.com/bclteam/archive/2005/06/14/429181.aspx#644345</link><pubDate>Fri, 23 Jun 2006 18:20:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:644345</guid><dc:creator>BCLTeam's WebLog</dc:creator><description>SafeHandle is the preferred mechanism for controlling the lifetime of an OS resource (such as a handle...</description></item><item><title>CLR Behavior on OutOfMemoryExceptions [Brian Grunkemeyer]</title><link>http://blogs.msdn.com/bclteam/archive/2005/06/14/429181.aspx#835711</link><pubDate>Tue, 17 Oct 2006 21:27:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:835711</guid><dc:creator>BCLTeam's WebLog</dc:creator><description>&lt;p&gt;For out of memory exceptions, keep in mind that we can run out of memory in the native heaps in the process,&lt;/p&gt;
</description></item><item><title>New In Orcas Part 3: GC Latency Modes</title><link>http://blogs.msdn.com/bclteam/archive/2005/06/14/429181.aspx#1867065</link><pubDate>Mon, 12 Mar 2007 22:16:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1867065</guid><dc:creator>Chris Lyon's WebLog</dc:creator><description>&lt;p&gt;As you may know, there are different GC modes to choose from depending on the type of application you’re&lt;/p&gt;
</description></item><item><title>Threads | hilpers</title><link>http://blogs.msdn.com/bclteam/archive/2005/06/14/429181.aspx#9303005</link><pubDate>Sat, 10 Jan 2009 02:46:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9303005</guid><dc:creator>Threads | hilpers</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.hilpers.com/1240254-threads"&gt;http://www.hilpers.com/1240254-threads&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Hashtables and concurrency | keyongtech</title><link>http://blogs.msdn.com/bclteam/archive/2005/06/14/429181.aspx#9338368</link><pubDate>Sun, 18 Jan 2009 20:20:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9338368</guid><dc:creator>Hashtables and concurrency | keyongtech</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.keyongtech.com/434159-hashtables-and-concurrency"&gt;http://www.keyongtech.com/434159-hashtables-and-concurrency&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Improving .NET application Performance and Scalability</title><link>http://blogs.msdn.com/bclteam/archive/2005/06/14/429181.aspx#9341754</link><pubDate>Tue, 20 Jan 2009 06:04:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9341754</guid><dc:creator>Jonathan Bergeron's Weblog</dc:creator><description>&lt;p&gt;I recommend reading the Microsoft Patterns and Practices book called &amp;quot;Improving .NET application Performance&lt;/p&gt;
</description></item><item><title>Region cr?tica | hilpers</title><link>http://blogs.msdn.com/bclteam/archive/2005/06/14/429181.aspx#9350381</link><pubDate>Tue, 20 Jan 2009 22:40:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9350381</guid><dc:creator>Region cr?tica | hilpers</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.hilpers-esp.com/445524-region-critica"&gt;http://www.hilpers-esp.com/445524-region-critica&lt;/a&gt;&lt;/p&gt;
</description></item><item><title> BCL Team Blog Constrained Execution Regions and other errata Brian | Green Tea Fat Burner</title><link>http://blogs.msdn.com/bclteam/archive/2005/06/14/429181.aspx#9717509</link><pubDate>Tue, 09 Jun 2009 22:10:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9717509</guid><dc:creator> BCL Team Blog Constrained Execution Regions and other errata Brian | Green Tea Fat Burner</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://greenteafatburner.info/story.php?id=1237"&gt;http://greenteafatburner.info/story.php?id=1237&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>