Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Commit

Permalink
Merge pull request #98 from MichalStrehovsky/hello
Browse files Browse the repository at this point in the history
Hello World fix for Memmove
  • Loading branch information
jkotas committed Oct 23, 2015
2 parents 86b0cc9 + a6e45ed commit cf1006a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/System.Private.CoreLib/src/System/Buffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ internal unsafe static void Memmove(byte* dest, byte* src, uint len)
}
#endif

// TODO-CORERT: re-enable this once we can handle the relocs for JIT code for large switch blocks
#if !CORERT
//
// This is portable version of memcpy. It mirrors what the hand optimized assembly versions of memcpy typically do.
//
Expand Down Expand Up @@ -404,6 +406,7 @@ internal unsafe static void Memmove(byte* dest, byte* src, uint len)
_Memmove(dest, src, len);
return;
}
#endif

if (((int)dest & 3) != 0)
{
Expand Down

0 comments on commit cf1006a

Please sign in to comment.