Skip to content

[profiler] disable inlining when coverage profiler is used and fix allocation sizes#17986

Merged
lewurm merged 2 commits intomono:masterfrom
lewurm:vsmac-profiler-crash
Dec 2, 2019
Merged

[profiler] disable inlining when coverage profiler is used and fix allocation sizes#17986
lewurm merged 2 commits intomono:masterfrom
lewurm:vsmac-profiler-crash

Conversation

@lewurm
Copy link
Contributor

@lewurm lewurm commented Dec 2, 2019

Fixes #17774

@marek-safar
Copy link
Member

@monojenkins backport 2019-10

@alexrp
Copy link
Contributor

alexrp commented Dec 2, 2019

Is this check not enough?

if (mono_profiler_coverage_instrumentation_enabled (method))

@lewurm
Copy link
Contributor Author

lewurm commented Dec 2, 2019

Is this check not enough?

if (mono_profiler_coverage_instrumentation_enabled (method))

This check is about the inlinee. Let's assume that the caller has coverage instrumentation enabled and the callee (inlinee) has not, then, when inlining the callee, cfg->prof_coverage is still in the context of the caller.

We probably could make it work by storing/restoring cfg->prof_coverage/cfg->coverage_info before inlining, too.

@lewurm lewurm merged commit a9a0a1e into mono:master Dec 2, 2019
@akoeplinger
Copy link
Member

@monojenkins backport 2019-12

ManickaP pushed a commit to ManickaP/runtime that referenced this pull request Jan 20, 2020
…location sizes (mono/mono#17986)

* [profiler] let compiler decide about the size of an entry

* [profiler] disable inlining when coverage profiler is used


Commit migrated from mono/mono@a9a0a1e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Running VSMac under coverage profiler crashes

6 participants