Skip to content

GC Fixes for Upstream Update #143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
8e8ab0c
Remove calling convention modifiers from cpuid sig (#83672)
am11 Mar 21, 2023
0b03ca6
SyntaxValueProvider: avoid performance issue with syntax list contain…
cston Mar 21, 2023
0c9568a
Improve RA for LowerBlockStore (#83627)
EgorBo Mar 21, 2023
beab6cd
Use BitOperations::PopCount() in genCountBits() (#83661)
kunalspathak Mar 21, 2023
12e9711
Cleanup some HWIntrinsic logic to ensure the right gtType and simdSiz…
tannergooding Mar 21, 2023
7b65174
Correct doc comment for IMultiplyOperators returns (#83693)
IDisposable Mar 21, 2023
17f576f
Localized file check-in by OneLocBuild Task: Build definition ID 679:…
dotnet-bot Mar 21, 2023
8c5cf11
[mono][jit] Adding compare all/any intrinsics. (#83515)
jandupej Mar 21, 2023
c1acb35
Replace a load with cheaper mov instruction when possible (#83458)
SwapnilGaikwad Mar 21, 2023
5896cbc
[tvOS] Bump to new OSX 13 AppleTV queue (#83272)
steveisok Mar 21, 2023
bb3dc9c
[mono][jit] Add vector horizontal sums and ToScalar on arm64. (#83675)
jandupej Mar 21, 2023
93dda3b
[browser] Fix encoding problem when publishing with AOT (#83510)
ilonatommy Mar 21, 2023
edb161a
[mono][aot] Load AOT module of a container assembly using assembly na…
kotlarmilos Mar 21, 2023
92f8abc
Revert "Formatting license files to match Unity legal standardization…
bholmes Mar 22, 2023
11c63d3
Merge from MSFT main
bholmes Mar 23, 2023
c046465
Update to net8.0 in the Unity files
bholmes Mar 22, 2023
759a329
Fixing Unity tests for Linux
bholmes Mar 23, 2023
c729824
Get Frozen Segment working with the Unity NULL GC
bholmes Mar 22, 2023
5522dd8
Unity GC write barrier patch
bholmes Mar 22, 2023
4828b6f
Revert "Unity GC write barrier patch"
bholmes Mar 24, 2023
2516f54
Force write barrier code to use the upper bounds
bholmes Mar 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -364,3 +364,8 @@ src/coreclr/System.Private.CoreLib/common
.dotnet-daily/
run-stress-*
test:.cs

# Unity emebdding API tests
unity/embed_api_tests/ALL_BUILD.*
unity/embed_api_tests/ZERO_CHECK.*
unity/embed_api_tests/mono_test_app.*
2 changes: 2 additions & 0 deletions .yamato/Globals.metafile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
globals:
artifact_base_name: dotnet-unity
13 changes: 13 additions & 0 deletions .yamato/all_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
all:
name: All CoreCLR Tests
dependencies:
- path: .yamato/windows.yml#all
- path: .yamato/osx.yml#all
- path: .yamato/linux.yml#all
triggers:
expression: |-
NOT pull_request.draft AND
pull_request.target eq "unity-main"
recurring:
- branch: unity-main
frequency: daily
22 changes: 22 additions & 0 deletions .yamato/build_linux_x64_debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{% metadata_file .yamato/Globals.metafile %}
---
name: Build Linux x64 Debug

agent:
type: Unity::VM
image: platform-foundation/linux-ubuntu-18.04-mono-bokken:0.1.7-978398
flavor: b1.large

variables:
ARTIFACT_FILENAME: {{globals.artifact_base_name}}-linux-x64.7z

commands:
- ./.yamato/scripts/build_yamato.sh --config=Debug

artifacts:
7z-archives:
paths:
- artifacts/unity/**
build:
paths:
- artifacts/bin/**
22 changes: 22 additions & 0 deletions .yamato/build_linux_x64_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{% metadata_file .yamato/Globals.metafile %}
---
name: Build Linux x64 Release

agent:
type: Unity::VM
image: platform-foundation/linux-ubuntu-18.04-mono-bokken:0.1.7-978398
flavor: b1.large

variables:
ARTIFACT_FILENAME: {{globals.artifact_base_name}}-linux-x64.7z

commands:
- ./.yamato/scripts/build_yamato.sh --config=Release

artifacts:
7z-archives:
paths:
- artifacts/unity/**
build:
paths:
- artifacts/bin/**
22 changes: 22 additions & 0 deletions .yamato/build_osx_arm64_debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{% metadata_file .yamato/Globals.metafile %}
---
name: Build OSX ARM64 Debug

agent:
type: Unity::VM::osx
image: platform-foundation/coreclr-osx:v0.0.1-1277968
flavor: m1.mac

variables:
ARTIFACT_FILENAME: {{globals.artifact_base_name}}-osx-arm64.7z

commands:
- ./.yamato/scripts/build_yamato.sh --arch=arm64 --config=Debug

artifacts:
7z-archives:
paths:
- artifacts/unity/**
build:
paths:
- artifacts/bin/**
22 changes: 22 additions & 0 deletions .yamato/build_osx_arm64_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{% metadata_file .yamato/Globals.metafile %}
---
name: Build OSX ARM64 Release

agent:
type: Unity::VM::osx
image: platform-foundation/coreclr-osx:v0.0.1-1277968
flavor: m1.mac

variables:
ARTIFACT_FILENAME: {{globals.artifact_base_name}}-osx-arm64.7z

commands:
- ./.yamato/scripts/build_yamato.sh --arch=arm64 --config=Release

artifacts:
7z-archives:
paths:
- artifacts/unity/**
build:
paths:
- artifacts/bin/**
22 changes: 22 additions & 0 deletions .yamato/build_osx_x64_debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{% metadata_file .yamato/Globals.metafile %}
---
name: Build OSX x64 Debug

agent:
type: Unity::VM::osx
image: platform-foundation/coreclr-osx:v0.0.1-1277968
flavor: m1.mac

variables:
ARTIFACT_FILENAME: {{globals.artifact_base_name}}-osx-x64.7z

commands:
- ./.yamato/scripts/build_yamato.sh --arch=x64 --config=Debug

artifacts:
7z-archives:
paths:
- artifacts/unity/**
build:
paths:
- artifacts/bin/**
22 changes: 22 additions & 0 deletions .yamato/build_osx_x64_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{% metadata_file .yamato/Globals.metafile %}
---
name: Build OSX x64 Release

agent:
type: Unity::VM::osx
image: platform-foundation/coreclr-osx:v0.0.1-1277968
flavor: m1.mac

variables:
ARTIFACT_FILENAME: {{globals.artifact_base_name}}-osx-x64.7z

commands:
- ./.yamato/scripts/build_yamato.sh --arch=x64 --config=Release

artifacts:
7z-archives:
paths:
- artifacts/unity/**
build:
paths:
- artifacts/bin/**
26 changes: 26 additions & 0 deletions .yamato/build_osx_x64arm64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{% metadata_file .yamato/Globals.metafile %}
---
name: Generate OSX x64+ARM64

agent:
type: Unity::VM::osx
image: platform-foundation/coreclr-osx:v0.0.1-1277968
flavor: m1.mac

variables:
ARTIFACT_FILENAME: {{globals.artifact_base_name}}-osx-x64arm64.7z

dependencies:
- path: .yamato/build_osx_arm64_release.yml
- path: .yamato/build_osx_x64_release.yml

commands:
- ./.yamato/scripts/generate_osx_x64_arm64.sh

artifacts:
7z-archives:
paths:
- artifacts/unity/**
build:
paths:
- artifacts/bin/**
22 changes: 22 additions & 0 deletions .yamato/build_windows_x64_debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{% metadata_file .yamato/Globals.metafile %}
---
name: Build Windows x64 Debug

agent:
type: Unity::VM
image: platform-foundation/coreclr-windows:v0.0.1-1276296
flavor: b1.xlarge

variables:
ARTIFACT_FILENAME: {{globals.artifact_base_name}}-win-x64.7z

commands:
- .yamato/scripts/build_yamato.cmd --arch=x64 --config=Debug

artifacts:
7z-archives:
paths:
- artifacts\unity\**
build:
paths:
- artifacts\bin\**
22 changes: 22 additions & 0 deletions .yamato/build_windows_x64_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{% metadata_file .yamato/Globals.metafile %}
---
name: Build Windows x64 Release

agent:
type: Unity::VM
image: platform-foundation/coreclr-windows:v0.0.1-1276296
flavor: b1.xlarge

variables:
ARTIFACT_FILENAME: {{globals.artifact_base_name}}-win-x64.7z

commands:
- .yamato/scripts/build_yamato.cmd --arch=x64 --config=Release

artifacts:
7z-archives:
paths:
- artifacts\unity\**
build:
paths:
- artifacts\bin\**
22 changes: 22 additions & 0 deletions .yamato/build_windows_x86_debug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{% metadata_file .yamato/Globals.metafile %}
---
name: Build Windows x86 Debug

agent:
type: Unity::VM
image: platform-foundation/coreclr-windows:v0.0.1-1276296
flavor: b1.xlarge

variables:
ARTIFACT_FILENAME: {{globals.artifact_base_name}}-win-x86.7z

commands:
- .yamato/scripts/build_yamato.cmd --arch=x86 --config=Debug

artifacts:
7z-archives:
paths:
- artifacts\unity\**
build:
paths:
- artifacts\bin\**
22 changes: 22 additions & 0 deletions .yamato/build_windows_x86_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{% metadata_file .yamato/Globals.metafile %}
---
name: Build Windows x86 Release

agent:
type: Unity::VM
image: platform-foundation/coreclr-windows:v0.0.1-1276296
flavor: b1.xlarge

variables:
ARTIFACT_FILENAME: {{globals.artifact_base_name}}-win-x86.7z

commands:
- .yamato/scripts/build_yamato.cmd --arch=x86 --config=Release

artifacts:
7z-archives:
paths:
- artifacts\unity\**
build:
paths:
- artifacts\bin\**
6 changes: 6 additions & 0 deletions .yamato/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
all:
name: All Linux Tests
dependencies:
- path: .yamato/test_linux_x64_release.yml
- path: .yamato/test_linux_x64_debug.yml

8 changes: 8 additions & 0 deletions .yamato/osx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
all:
name: All OSX Tests
dependencies:
- path: .yamato/test_osx_x64_release.yml
- path: .yamato/test_osx_x64_debug.yml
- path: .yamato/build_osx_arm64_release.yml # We don't run macOS ARM64 tests yet, just build it.
- path: .yamato/build_osx_arm64_debug.yml
- path: .yamato/build_osx_x64arm64.yml
20 changes: 20 additions & 0 deletions .yamato/publish_to_stevedore_public.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish To Stevedore (Public)

agent:
type: Unity::VM
image: platform-foundation/linux-ubuntu-18.04-mono-bokken:latest
flavor: b1.large

variables:
STEVEDORE_REPO: public

dependencies:
- .yamato/build_linux_x64_release.yml
- .yamato/build_osx_x64arm64.yml
- .yamato/build_windows_x86_release.yml
- .yamato/build_windows_x64_release.yml

commands:
- curl -sSo StevedoreUpload "$STEVEDORE_UPLOAD_TOOL_LINUX_X64_URL"
- chmod +x StevedoreUpload
- ./StevedoreUpload --version-len=12 --repo=$STEVEDORE_REPO --version="$GIT_REVISION" artifacts/unity/*
20 changes: 20 additions & 0 deletions .yamato/publish_to_stevedore_testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish To Stevedore (Testing)

agent:
type: Unity::VM
image: platform-foundation/linux-ubuntu-18.04-mono-bokken:latest
flavor: b1.large

variables:
STEVEDORE_REPO: testing

dependencies:
- .yamato/build_linux_x64_release.yml
- .yamato/build_osx_x64arm64.yml
- .yamato/build_windows_x86_release.yml
- .yamato/build_windows_x64_release.yml

commands:
- curl -sSo StevedoreUpload "$STEVEDORE_UPLOAD_TOOL_LINUX_X64_URL"
- chmod +x StevedoreUpload
- ./StevedoreUpload --version-len=12 --repo=$STEVEDORE_REPO --version="$GIT_REVISION" artifacts/unity/*
3 changes: 3 additions & 0 deletions .yamato/scripts/build_yamato.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off

%~dp0../../dotnet.cmd run --project %~dp0../../unity/CITools/BuildDriver/BuildDriver.csproj -- %*
4 changes: 4 additions & 0 deletions .yamato/scripts/build_yamato.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

BASEDIR=$(dirname $0)
$BASEDIR/../../dotnet.sh run --project $BASEDIR/../../unity/CITools/BuildDriver/BuildDriver.csproj -- "$@"
6 changes: 6 additions & 0 deletions .yamato/scripts/download_7z.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
$artifacts = 'artifacts'
$7z_zip = Join-Path -Path $artifacts -ChildPath '7za-win-x64.zip'
$7z_folder = Join-Path -Path $artifacts -ChildPath '7za-win-x64'
$client = new-object System.Net.WebClient
$client.DownloadFile("https://public-stevedore.unity3d.com/r/public/7za-win-x64/38c5b39be2e8_a333cfccb708c88459b3812eb2597ca486ec9b416172543ca3ef8e5cd5f80984.zip",$7z_zip)
Expand-Archive -Path $7z_zip -DestinationPath $7z_folder
8 changes: 8 additions & 0 deletions .yamato/scripts/generate_osx_x64_arm64.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# download 7-zip
curl https://public-stevedore.unity3d.com/r/public/7za-mac-x64/e6c75fb7ffda_5bd76652986a0e3756d1cfd7e84ce056a9e1dbfc5f70f0514a001f724c0fbad2.zip --output artifacts/7za-mac-x64.zip
unzip artifacts/7za-mac-x64.zip -d artifacts/7za-mac-x64
# run the liponator script
mkdir -p ./artifacts/bin/microsoft.netcore.app.runtime.osx-x64arm64/Release/runtimes/osx-x64arm64
perl .yamato/scripts/the_liponator.pl ./artifacts/bin/microsoft.netcore.app.runtime.osx-x64/Release/runtimes/osx-x64 ./artifacts/bin/microsoft.netcore.app.runtime.osx-arm64/Release/runtimes/osx-arm64 ./artifacts/bin/microsoft.netcore.app.runtime.osx-x64arm64/Release/runtimes/osx-x64arm64
cp LICENSE.md artifacts/bin/microsoft.netcore.app.runtime.osx-x64arm64/Release/runtimes/osx-x64arm64/.
artifacts/7za-mac-x64/7za a artifacts/unity/$ARTIFACT_FILENAME ./artifacts/bin/microsoft.netcore.app.runtime.osx-x64arm64/Release/runtimes/osx-x64arm64/*
Loading