Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ThreadLocal<T> not using the JIT fast path for TLS access #18370

@fanyang-mono

Description

@fanyang-mono

Steps to Reproduce

Make the following change to mono/netcore/build.sh
Screen Shot 2020-01-07 at 11 20 17 AM

Revert the following change:
cfba7c5#diff-274660eb4b1b1d963a330b471e10f41c

Then run the following script by following the instructions in it.
profileMonoScript.sh.zip

Current Behavior

System_Threading_ThreadLocal_1_T_REF_get_Value/mono_class_static_field_address is one of the hotspots according to the following flamegraph
Screen Shot 2020-01-07 at 10 29 24 AM

Expected Behavior

System_Threading_ThreadLocal_1_T_REF_get_Value/mono_class_static_field_address should take a small portion of time of the whole program.

On which platforms did you notice this

[ ] macOS
[x] Linux
[ ] Windows

Version Used:

mono master: 61eb2be from Dec 30th, 2019

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions