-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Note interactions between JIT optimizations and stack root reporting #8819
Conversation
Add a short note about interactions between JIT optimizations and stack root reporting since it is frequently discussed topic. The full discussion is in https://github.com/dotnet/coreclr/issues/5826#issuecomment-226574611
@@ -166,7 +166,7 @@ ms.author: "ronpet" | |||
|
|||
The garbage collector uses the following information to determine whether objects are live: | |||
|
|||
- **Stack roots**. Stack variables provided by the just-in-time (JIT) compiler and stack walker. | |||
- **Stack roots**. Stack variables provided by the just-in-time (JIT) compiler and stack walker. Note that JIT optimizations can lengthen and shorten region of code within which the stack variable is reported to the garbage collector. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both optimizations and debug flags, right? (Though I guess the latter could be assumed as just lack of optimizations?)
Also nit: "region of code" => "regions of code" or "the region of code"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, @jkotas. Left a couple of suggested changes.
@@ -166,7 +166,7 @@ ms.author: "ronpet" | |||
|
|||
The garbage collector uses the following information to determine whether objects are live: | |||
|
|||
- **Stack roots**. Stack variables provided by the just-in-time (JIT) compiler and stack walker. | |||
- **Stack roots**. Stack variables provided by the just-in-time (JIT) compiler and stack walker. Note that JIT optimizations can lengthen and shorten region of code within which the stack variable is reported to the garbage collector. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
region of code --> the region of code
the stack variable is --> stack variables are
Thanks for making the changes, @jkotas. I'll merge your PR now. |
Add a short note about interactions between JIT optimizations and stack root reporting since it is frequently discussed topic. The full discussion is in https://github.com/dotnet/coreclr/issues/5826#issuecomment-226574611