diff options
author | Vladimir Sadov <vsadov@microsoft.com> | 2019-06-27 10:48:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-27 10:48:47 -0700 |
commit | 7a74a0b4f94b993f61f1c02ce0b8a2c6611771c3 (patch) | |
tree | a7451044b444d5b3e7d67411ca19c36db38e1553 /tests | |
parent | c671a7f1356b0ee25a661c0925c8ead88fb19a42 (diff) | |
download | coreclr-7a74a0b4f94b993f61f1c02ce0b8a2c6611771c3.tar.gz coreclr-7a74a0b4f94b993f61f1c02ce0b8a2c6611771c3.tar.bz2 coreclr-7a74a0b4f94b993f61f1c02ce0b8a2c6611771c3.zip |
Fix SIGSEGV in GC when dealing with large double[] on ARM32 (#25403)
* Fix for #25252
* revert to special casing 8-alignement for double[] in GC helpers for x86
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/GC/Regressions/v3.0/25252/25252.cs | 20 | ||||
-rw-r--r-- | tests/src/GC/Regressions/v3.0/25252/25252.csproj | 32 |
2 files changed, 52 insertions, 0 deletions
diff --git a/tests/src/GC/Regressions/v3.0/25252/25252.cs b/tests/src/GC/Regressions/v3.0/25252/25252.cs new file mode 100644 index 0000000000..9245423437 --- /dev/null +++ b/tests/src/GC/Regressions/v3.0/25252/25252.cs @@ -0,0 +1,20 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; + +class Program +{ + static int Main() + { + var matrix = new double[128 * 128]; + + Console.WriteLine("SIGSEGV upcoming"); + GC.Collect(GC.MaxGeneration); + + GC.KeepAlive(matrix); + return 100; + } +} + diff --git a/tests/src/GC/Regressions/v3.0/25252/25252.csproj b/tests/src/GC/Regressions/v3.0/25252/25252.csproj new file mode 100644 index 0000000000..ed9874daa8 --- /dev/null +++ b/tests/src/GC/Regressions/v3.0/25252/25252.csproj @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" /> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{95DFC527-4DC1-495E-97D7-E94EE1F7140D}</ProjectGuid> + <OutputType>Exe</OutputType> + <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> + <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\</SolutionDir> + <AllowUnsafeBlocks>true</AllowUnsafeBlocks> + <CLRTestPriority>0</CLRTestPriority> + </PropertyGroup> + <!-- Default configurations to help VS understand the configurations --> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "></PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "></PropertyGroup> + <ItemGroup> + <CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies"> + <Visible>False</Visible> + </CodeAnalysisDependentAssemblyPaths> + </ItemGroup> + <ItemGroup> + <!-- Add Compile Object Here --> + <Compile Include="25252.cs" /> + </ItemGroup> + <ItemGroup> + <Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" /> + </ItemGroup> + <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.targets))\dir.targets" /> + <PropertyGroup Condition=" '$(MsBuildProjectDirOverride)' != '' "></PropertyGroup> +</Project>
\ No newline at end of file |