Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Memory leak in ManualResetEventSlim #19665

@ayushm007

Description

@ayushm007

Steps to Reproduce

  1. Install Mono version 6.6.0.161
  2. Run attached program
    Note: program run on ARM target on linux.

Current Behavior

Below chart showing the memory taken by program. It is continuously increase and looks like it hampered GC cycle also.
ManualResetEventSlim

Download the source code from here
ManualResetEventSlim.zip

Expected Behavior

Memory should be used with in a range. Same program with ManualResetEvent uses memory in below pattern.
ManualResetEvent

Download the source code from here
ManualResetEvent.zip

On which platforms did you notice this

[ ] macOS
[x] Linux
[ ] Windows

Version Used:

Mono JIT compiler version 6.6.0.161 (tarball Thu Feb 27 16:07:49 IST 2020)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: normal
Notifications: epoll
Architecture: armel,vfp+hard
Disabled: none
Misc: softdebug
Interpreter: yes
LLVM: supported, not enabled.
Suspend: preemptive
GC: sgen (concurrent by default)

Stacktrace

Please paste the stack trace here if available.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions