diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-09-01 20:08:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-01 20:08:38 +0300 |
commit | d7619cd4b165c13430484e381042f055d4c5a9c7 (patch) | |
tree | 42d8b647bb10180969296a10e2dc271248d7484a | |
parent | 0ab2741bdcf5c05c6c4f986d6c4eb0df573bc549 (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.c | 8 |
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."); |