Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Merge nmirror to master - #1348

Merged
jkotas merged 13 commits into
masterfrom
nmirror
Jun 1, 2016
Merged

jkotas merged 13 commits into
masterfrom
nmirror

Conversation

@jkotas

@jkotas jkotas commented Jun 1, 2016

Copy link
Copy Markdown
Member

No description provided.

jkotas and others added 7 commits May 31, 2016 07:33
… arrays with null value.

[tfs-changeset: 1609323]
- Use extern "C" names for methods called from asm helper to avoid dealing with name mangling for ports
- Move hooking up of the PInvoke tunnel to C++
- Change arm assembly code to follow same naming pattern as x86 and arm64

[tfs-changeset: 1609408]
AntonLapounov and others added 6 commits May 31, 2016 17:57
CR: JKotas

Move LockHolder.cs to the same directory as Lock.cs and replace "lock (_lock)" with "using (LockHolder.Hold(_lock))" in Framework code.  The lock statement generates a call to Monitor.Enter(obj, ref lockTaken).  After ensuring (obj != null) && (lockTaken == false), Monitor.Enter tests whether (obj is Lock).  If it is, Monitor.Enter uses the fast path for acquiring the lock.  Using the LockHolder pattern allows to skip those extra checks.  In some places (e.g., in ClassConstructorRunner) the LockHolder pattern avoids potential reentrancy issues with Monitor..cctor.

For now I am keeping special handling of the Lock type in Monitor.GetLock. We also need to make sure ICorDebugThread4::GetBlockingObjects works properly in case of direct Lock.Acquire/Release calls.

[tfs-changeset: 1609410]
[tfs-changeset: 1609436]
[tfs-changeset: 1609573]
@jkotas
jkotas merged commit a37854e into master Jun 1, 2016
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.

4 participants