From 11f65fd7240fc104bbe4f72fc9133dcc27d1b963 Mon Sep 17 00:00:00 2001 From: Stephen Toub Date: Mon, 29 Aug 2022 07:13:08 -0400 Subject: [PATCH] Fix mentioned default value of DOTNET_TC_OnStackReplacement_InitialCounter (#74729) --- docs/design/features/OsrDetailsAndDebugging.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/design/features/OsrDetailsAndDebugging.md b/docs/design/features/OsrDetailsAndDebugging.md index 60d697473c147..3ca35c2b9198e 100644 --- a/docs/design/features/OsrDetailsAndDebugging.md +++ b/docs/design/features/OsrDetailsAndDebugging.md @@ -172,7 +172,7 @@ During the patchpoint phase, if any block was marked, the jit adds a new integer local to the method (the patchpoint counter) and adds IR to initialize the counter on method entry to the value of `DOTNET_TC_OnStackReplacement_InitialCounter` (by default this is -0x1000). +1000). At each marked block the JIT adds code to decrement the counter and conditionally invoke `CORINFO_HELP_PATCHPOINT` if the counter value is zero @@ -492,4 +492,4 @@ In the performance repo configurations we reduce the number of warmup iterations ## References * [OSR Design Document](https://github.com/dotnet/runtime/blob/main/docs/design/features/OnStackReplacement.md). May be a bit dated in places. -* [OSR Next Steps Issue](https://github.com/dotnet/runtime/issues/33658). Has a lot of information on issues encountered during bring-up, current limitations, and ideas for things we might revisit. \ No newline at end of file +* [OSR Next Steps Issue](https://github.com/dotnet/runtime/issues/33658). Has a lot of information on issues encountered during bring-up, current limitations, and ideas for things we might revisit.