Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2017-07-01 03:11:38 +0300
committerJan Kotas <jkotas@microsoft.com>2017-07-01 03:11:38 +0300
commita9313283405cdcca412e34264e4a62020839144c (patch)
tree581f6d8dd18ffca9c5f387a18fb1749cfc2bdfa1 /src/Runtime.Base
parent46f745a3f825c46c29770e9ce46743fc2e30f84d (diff)
Replace StackOnlyAttribute with IsByRefLikeAttribute
IsByRefLikeAttribute is the shipping version of the StackOnlyAttribute [tfs-changeset: 1664170]
Diffstat (limited to 'src/Runtime.Base')
-rw-r--r--src/Runtime.Base/src/Runtime.Base.csproj2
-rw-r--r--src/Runtime.Base/src/System/Runtime/CompilerServices/IsByRefLikeAttribute.cs (renamed from src/Runtime.Base/src/System/Runtime/CompilerServices/StackOnlyAttribute.cs)4
-rw-r--r--src/Runtime.Base/src/System/Runtime/ExceptionHandling.cs2
3 files changed, 5 insertions, 3 deletions
diff --git a/src/Runtime.Base/src/Runtime.Base.csproj b/src/Runtime.Base/src/Runtime.Base.csproj
index f4ccefe2f..42b87aa36 100644
--- a/src/Runtime.Base/src/Runtime.Base.csproj
+++ b/src/Runtime.Base/src/Runtime.Base.csproj
@@ -31,7 +31,7 @@
<Compile Include="System\Nullable.cs" />
<Compile Include="System\Object.cs" />
<Compile Include="System\Runtime\CachedInterfaceDispatch.cs" />
- <Compile Include="System\Runtime\CompilerServices\StackOnlyAttribute.cs" />
+ <Compile Include="System\Runtime\CompilerServices\IsByRefLikeAttribute.cs" />
<Compile Include="System\Runtime\DispatchResolve.cs" />
<Compile Include="System\Runtime\GCStress.cs" />
</ItemGroup>
diff --git a/src/Runtime.Base/src/System/Runtime/CompilerServices/StackOnlyAttribute.cs b/src/Runtime.Base/src/System/Runtime/CompilerServices/IsByRefLikeAttribute.cs
index a51669fb1..9851dc54e 100644
--- a/src/Runtime.Base/src/System/Runtime/CompilerServices/StackOnlyAttribute.cs
+++ b/src/Runtime.Base/src/System/Runtime/CompilerServices/IsByRefLikeAttribute.cs
@@ -7,5 +7,7 @@ using System;
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Struct)]
- internal sealed class StackOnlyAttribute : Attribute { }
+ internal sealed class IsByRefLikeAttribute : Attribute
+ {
+ }
}
diff --git a/src/Runtime.Base/src/System/Runtime/ExceptionHandling.cs b/src/Runtime.Base/src/System/Runtime/ExceptionHandling.cs
index ea552bb34..78bf58608 100644
--- a/src/Runtime.Base/src/System/Runtime/ExceptionHandling.cs
+++ b/src/Runtime.Base/src/System/Runtime/ExceptionHandling.cs
@@ -445,7 +445,7 @@ namespace System.Runtime
InstructionFaultFlag = 0x10
}
- [StackOnly]
+ [IsByRefLike]
[StructLayout(LayoutKind.Explicit)]
public struct ExInfo
{