[RISC-V] Implement replacing safe-point call instructions under GC_STRESS (#97818)
authorTomasz Sowiński <tomeksowi@gmail.com>
Mon, 5 Feb 2024 01:17:50 +0000 (02:17 +0100)
committerGleb Balykov/Advanced System SW Lab /SRR/Staff Engineer/Samsung Electronics <g.balykov@samsung.com>
Thu, 22 Feb 2024 11:52:55 +0000 (14:52 +0300)
commitd7d447602821fbc96f0535e639124db7062ecd9a
treeea1b8cd3ab4074efdc3db958d8952ddc973d28fb
parentcd20bb944fec9402764f58a5737cad12046a3457
[RISC-V] Implement replacing safe-point call instructions under GC_STRESS (#97818)

* [RISC-V] Fix the System.NullReferenceException: Object reference not set to an instance of an object. in Methodical_r2.sh-deep_array_nz_r.dll when DOTNET_GCStress=4.

* [RISC-V] Implement correctly replacing safe-point instructions under GC_STRESS and getting the target of call instructions jal and jalr

* Add missing assign to shift

---------

Co-authored-by: Dawid Jurczak <dawid_jurek@vp.pl>
src/coreclr/vm/gccover.cpp
src/coreclr/vm/gccover.h