Skip to content

Comments

[mono][interp] Add lock when allocating from method mempool#89231

Merged
lewing merged 1 commit intodotnet:mainfrom
BrzVlad:fix-interp-imethod-alloc
Jul 20, 2023
Merged

[mono][interp] Add lock when allocating from method mempool#89231
lewing merged 1 commit intodotnet:mainfrom
BrzVlad:fix-interp-imethod-alloc

Conversation

@BrzVlad
Copy link
Member

@BrzVlad BrzVlad commented Jul 20, 2023

MonoMemPool does not support multithreaded allocation. We lock on default jit_mm lock for convenience, since it is widely used in interpreter. We might want to consider using a separate lock.

MonoMemPool does not support multithreaded allocation. We lock on default jit_mm lock for convenience, since it is widely used in interpreter. We might want to consider using a separate lock.
@ghost
Copy link

ghost commented Jul 20, 2023

Tagging subscribers to this area: @BrzVlad, @kotlarmilos
See info in area-owners.md if you want to be subscribed.

Issue Details

MonoMemPool does not support multithreaded allocation. We lock on default jit_mm lock for convenience, since it is widely used in interpreter. We might want to consider using a separate lock.

Author: BrzVlad
Assignees: BrzVlad
Labels:

area-Codegen-Interpreter-mono

Milestone: -

@BrzVlad
Copy link
Member Author

BrzVlad commented Jul 20, 2023

Fixes assertions like Assertion at /home/vbrezae/Xamarin/repos/runtime/src/mono/mono/mini/interp/transform.c:8244, condition `td->new_code [reloc->offset + reloc->skip + 1] == 0xdead' after #88892

@lewing
Copy link
Member

lewing commented Jul 20, 2023

failure is known

@lewing lewing merged commit 3a077f5 into dotnet:main Jul 20, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Aug 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants