Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-09-01 20:08:38 +0300
committerGitHub <noreply@github.com>2021-09-01 20:08:38 +0300
commitd7619cd4b165c13430484e381042f055d4c5a9c7 (patch)
tree42d8b647bb10180969296a10e2dc271248d7484a
parent0ab2741bdcf5c05c6c4f986d6c4eb0df573bc549 (diff)
[release/6.0-rc1] [debugger] Avoid calling debugger_agent_single_step_from_context when thread is not attached yet (#58480)v6.0.0-rc.1.21451.13
* Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1383962 * Fix { Co-authored-by: Thays <thaystg@gmail.com>
-rw-r--r--src/mono/mono/mini/method-to-ir.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mono/mono/mini/method-to-ir.c b/src/mono/mono/mini/method-to-ir.c
index 96ac001f7eb..151b9dbe6a8 100644
--- a/src/mono/mono/mini/method-to-ir.c
+++ b/src/mono/mono/mini/method-to-ir.c
@@ -6080,6 +6080,14 @@ mono_method_to_ir (MonoCompile *cfg, MonoMethod *method, MonoBasicBlock *start_b
seq_points = FALSE;
}
+ if (method->wrapper_type == MONO_WRAPPER_OTHER) {
+ WrapperInfo *info = mono_marshal_get_wrapper_info (method);
+ if (info->subtype == WRAPPER_SUBTYPE_INTERP_IN) {
+ /* We could hit a seq point before attaching to the JIT (#8338) */
+ seq_points = FALSE;
+ }
+ }
+
if (cfg->prof_coverage) {
if (cfg->compile_aot)
g_error ("Coverage profiling is not supported with AOT.");