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

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
327b8f6
Add CORINFO_THREAD_LOCAL_FIELD_INFO and getThreadLocalFieldInfo()
kunalspathak Feb 17, 2023
51644e2
Implementation of getThreadLocalFieldInfo()
kunalspathak Feb 17, 2023
8aef324
Change the field types from CORINFO_CONST_LOOKUP to uint32_t
kunalspathak Feb 17, 2023
916482b
Introduce CORINFO_FIELD_STATIC_TLS_MANAGED
kunalspathak Feb 17, 2023
6eaa3d9
Introduce GTF_FLD_TLS_MANAGED
kunalspathak Feb 17, 2023
efbb53d
Introduce eeGetThreadLocalFieldInfo()
kunalspathak Feb 17, 2023
f3fc3a2
Fix the offsetOfThreadStaticBlocks, hardcode threadStaticBlockIndex f…
kunalspathak Feb 22, 2023
ca4caad
Add impThreadLocalFieldAccess()
kunalspathak Feb 22, 2023
8fd9f58
Switch to GS segment register with a TODO
kunalspathak Feb 23, 2023
b0bf47f
Add reverse map `g_threadStaticBlockTypeIDMap` for type -> ID
kunalspathak Feb 23, 2023
3796c73
Fix GS segment register encoding
kunalspathak Feb 25, 2023
50c5e95
Add comment for g_threadStaticBlockTypeIDMap
kunalspathak Feb 25, 2023
8d0c3a9
Add extra parameter for typeIndex in JIT_GetSharedNonGCThreadStaticBase
kunalspathak Feb 25, 2023
45ddb20
Update JIT_GetSharedNonGCThreadStaticBase to add logic for storing ty…
kunalspathak Feb 25, 2023
8ca4999
Fix encoding of gs:[0x58]
kunalspathak Feb 28, 2023
93a70a1
fix some bugs in importer to change size from 4 to 8
kunalspathak Feb 28, 2023
a0e40f0
add some printf in jithelpers
kunalspathak Feb 28, 2023
e6bdd82
To revert
kunalspathak Mar 2, 2023
8548500
Merge remote-tracking branch 'origin/main' into tls
kunalspathak Mar 2, 2023
f3bca52
Update the helper to skip making re-entry for staticBlock
kunalspathak Mar 3, 2023
93702e3
Add impThreadLocalFieldWrite() for store
kunalspathak Mar 3, 2023
a607458
Fix a issue for helper
kunalspathak Mar 3, 2023
c331a68
Use JITDUMP
kunalspathak Mar 3, 2023
a96745f
Merge remote-tracking branch 'origin/main' into tls
kunalspathak Mar 3, 2023
b3e1038
Just enable the optimization for primitive types
kunalspathak Mar 4, 2023
3a20176
Update the JITEE guid
kunalspathak Mar 4, 2023
db09d6f
Fix an assert for volatile variables
kunalspathak Mar 5, 2023
58cdade
Mark helper block as cold block
kunalspathak Mar 5, 2023
a138959
wip
kunalspathak Mar 6, 2023
8d0d6a7
Fix the size of maxThreadStaticBlock
kunalspathak Mar 7, 2023
e372a95
fix a bug to insert the entry in cache
kunalspathak Mar 7, 2023
b273fe6
Add #ifdef for HOST_WINDOWS / TARGET_WINDOWS
kunalspathak Mar 7, 2023
9584257
Dynamic memory allocation for static block array
kunalspathak Mar 7, 2023
d0bbf56
Call InitTypeMap only if host == windows
kunalspathak Mar 7, 2023
6e10e7d
Add CORINFO_HELP_GETSHARED_NONGCTHREADSTATIC_BASE_NOCTOR_OPTIMIZED
kunalspathak Mar 8, 2023
c5266da
Merge remote-tracking branch 'origin/main' into tls
kunalspathak Mar 24, 2023
360ab8c
Expand the TLS field access in late phase
kunalspathak Mar 28, 2023
3dfb3d2
Move rarely ran block to the end
kunalspathak Mar 28, 2023
0e3daaa
wip
kunalspathak Mar 28, 2023
7f59353
Fix the bug to access the value from fastPath
kunalspathak Mar 28, 2023
e618aee
Remove code from importer
kunalspathak Mar 28, 2023
2b0629d
Cleanup the code
kunalspathak Mar 28, 2023
a4bb8dd
Moved CreateBlockFromTree to fgbasic.cpp
kunalspathak Mar 28, 2023
bad7fb3
Move fgExpandThreadLocalAccess() to flowgraph.cpp
kunalspathak Mar 28, 2023
e094f29
Add getThreadLocalStaticBlocksInfo() method
kunalspathak Mar 28, 2023
7b9de56
Consume getThreadLocalStaticBlocksInfo() method
kunalspathak Mar 28, 2023
781e25e
Updated definition of getThreadLocalFieldInfo()
kunalspathak Mar 29, 2023
f774eb5
Rename CORINFO_THREAD_LOCAL_FIELD_INFO to CORINFO_THREAD_STATIC_BLOCK…
kunalspathak Mar 29, 2023
76cbaa1
Add TARGET_WINDOWS
kunalspathak Mar 29, 2023
097a2d4
Make TARGET_WINDOWS at some definitions
kunalspathak Mar 29, 2023
d718156
Add dummy definition for unix
kunalspathak Mar 29, 2023
20f2e90
jit format
kunalspathak Mar 29, 2023
612187e
Merge remote-tracking branch 'origin/main' into tls
kunalspathak Mar 29, 2023
69f64cf
remote unnecessary code from morph
kunalspathak Mar 29, 2023
5e53c84
Fix an issue on linux, add assert for tls_index != 0
kunalspathak Mar 30, 2023
5f4b971
Convert from TARGET_WINDOWS to HOST_WINDOWS
kunalspathak Mar 30, 2023
8f61268
jit format
kunalspathak Mar 30, 2023
c3b3c83
fix the if-check
kunalspathak Mar 30, 2023
91f6a8a
fix gcc build error
kunalspathak Mar 31, 2023
25c04d5
Added MethodHaveTlsFieldAccess()
kunalspathak Mar 31, 2023
90103a1
Handle the case for '_tls_index == 0'
kunalspathak Mar 31, 2023
90af395
fix a typo
kunalspathak Mar 31, 2023
66f6401
Fix windows/arm64 issue
kunalspathak Mar 31, 2023
3cd2881
fix encoding of teb loading for arm64
kunalspathak Apr 1, 2023
055b9e0
Fix the condition in jitinterface to select correct helper
kunalspathak Apr 3, 2023
c8ed0c6
fix the condition for other helper too
kunalspathak Apr 4, 2023
ab98131
fix the windows/x86 case
kunalspathak Apr 4, 2023
6c9264f
Merge remote-tracking branch 'origin/main' into tls
kunalspathak Apr 4, 2023
d085acd
jit format
kunalspathak Apr 4, 2023
f08fbd3
Use CORINFO_CONST_LOOKUP for _tls_index
kunalspathak Apr 5, 2023
a81c4b9
Move typeIdMap to BaseDomain class
kunalspathak Apr 5, 2023
18e6b46
Introduce useFatPointerDispatch parameter for GetTypeID()
kunalspathak Apr 5, 2023
d23a0b2
jit format
kunalspathak Apr 5, 2023
1aea091
Do not pass classID and moduleID to the new helper
kunalspathak Apr 5, 2023
19bb28a
fix build for non-windows
kunalspathak Apr 5, 2023
7dc2d6e
fix superpmi methods
kunalspathak Apr 5, 2023
2d76689
review feedback
kunalspathak Apr 5, 2023
79e0351
fix linux build errors
kunalspathak Apr 6, 2023
1f2a353
review feedback
kunalspathak Apr 6, 2023
c0de86f
fix weight inherit
kunalspathak Apr 6, 2023
52f98c5
inline JIT_GetNonGCThreadStaticBase_Helper to fix the contract error
kunalspathak Apr 7, 2023
cdd79fd
Remove dead code from helper
kunalspathak Apr 7, 2023
bdc67fe
Add GTF_CALL_M_EXP_TLS_ACCESS to check if we do not revisit the alrea…
kunalspathak Apr 7, 2023
c9858d4
address feedback
kunalspathak Apr 7, 2023
a7d290f
Merge remote-tracking branch 'origin/main' into tls
kunalspathak Apr 8, 2023
4f20569
regenerate the files
kunalspathak Apr 8, 2023
746fd04
Introduce fgExpandHelper and fgExpandHelperForBlock and reuse it for …
kunalspathak Apr 8, 2023
b734406
fix the typo
kunalspathak Apr 9, 2023
c67b085
update the assert for runtimelookup
kunalspathak Apr 10, 2023
fc6bb0c
Merge remote-tracking branch 'origin/main' into tls
kunalspathak Apr 10, 2023
047a6ef
check if we should skip rarely run blocks
kunalspathak Apr 10, 2023
30d19d9
review feedback
kunalspathak Apr 11, 2023
be29dcb
Remove GTF_IND_INVARIANT from `typeIndex` access because it produces …
kunalspathak Apr 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix a issue for helper
  • Loading branch information
kunalspathak committed Mar 3, 2023
commit a607458ba5da37ba5a493e8bee6060e1e88d50b2
2 changes: 1 addition & 1 deletion src/coreclr/jit/flowgraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ GenTreeCall* Compiler::fgGetStaticsCCtorHelper(CORINFO_CLASS_HANDLE cls, CorInfo
opClassIDArg = gtNewIconNode(clsID, TYP_INT);
}

if (typeIndex == -1)
if (helper != CORINFO_HELP_GETSHARED_NONGCTHREADSTATIC_BASE_NOCTOR)
{
result = gtNewHelperCallNode(helper, type, opModuleIDArg, opClassIDArg);
}
Expand Down