Skip to content

Commit 46a7f57

Browse files
authored
chore: Apply patch from dotnet/runtime#111318 (#148)
* chore: Apply patch from dotnet/runtime#111318 * ci: Update artifacts steps * chore: Adjust patch * chore: Adjust ubuntu * chore: Adjust runners * chore: adjust net install * chore: Adjust net installer * chore: remove container
1 parent 70ec1d6 commit 46a7f57

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

.github/workflows/runtime-ci.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ jobs:
136136
cd runtime\artifacts\bin\microsoft.netcore.app.runtime.browser-wasm\$env:BUILD_CONFIGURATION
137137
Compress-Archive -DestinationPath $ARTIFACTS_FOLDER\dotnet-runtime-wasm-windows-$env:CURRENT_COMMIT-$env:BASE_DOTNET_SHORT_COMMIT-${{ github.run_id }}-$env:BUILD_CONFIGURATION$archiveConfiguration.zip -Path *
138138
139-
- uses: actions/upload-artifact@v2
139+
- uses: actions/upload-artifact@v3
140140
if: ${{ always() }}
141141
with:
142142
name: wasm
@@ -147,8 +147,7 @@ jobs:
147147
##
148148
build_linux_job:
149149
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
150-
runs-on: ubuntu-latest
151-
container: 'unoplatform/wasm-build:2.3'
150+
runs-on: ubuntu-20.04
152151

153152
strategy:
154153
matrix:
@@ -158,7 +157,7 @@ jobs:
158157

159158
steps:
160159
- name: Setup .NET SDK
161-
uses: actions/setup-dotnet@v1.7.2
160+
uses: actions/setup-dotnet@v4
162161
with:
163162
dotnet-version: ${{ env.DOTNETSDK_VERSION }}
164163

@@ -284,7 +283,7 @@ jobs:
284283
cd runtime/artifacts/bin/microsoft.netcore.app.runtime.browser-wasm/$BUILD_CONFIGURATION
285284
/usr/bin/zip -r $ARTIFACTS_FOLDER/dotnet-runtime-wasm-linux-$CURRENT_COMMIT-$BASE_DOTNET_SHORT_COMMIT-$GITHUB_RUN_ID-$BUILD_CONFIGURATION$ARCHIVE_CONFIGURATION.zip *
286285
287-
- uses: actions/upload-artifact@v2
286+
- uses: actions/upload-artifact@v3
288287
if: ${{ always() }}
289288
with:
290289
name: wasm
@@ -296,13 +295,13 @@ jobs:
296295
release_job:
297296
if: github.event_name == 'push'
298297
needs: [build_linux_job,build_windows_job]
299-
runs-on: ubuntu-latest
298+
runs-on: ubuntu-20.04
300299
environment:
301300
name: Release
302301

303302
steps:
304303
- name: Download package
305-
uses: actions/download-artifact@v2
304+
uses: actions/download-artifact@v3
306305
with:
307306
name: wasm
308307

patches/0016-pr111318.patch

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
diff --git a/src/mono/mono/mini/mini.c b/src/mono/mono/mini/mini.c
2+
index 63d89b3f28a56..592b5488cd1f2 100644
3+
--- a/src/mono/mono/mini/mini.c
4+
+++ b/src/mono/mono/mini/mini.c
5+
@@ -3331,8 +3331,8 @@ mini_method_compile (MonoMethod *method, guint32 opts, JitFlags flags, int parts
6+
MonoExceptionClause *clause1 = &cfg->header->clauses [i];
7+
MonoExceptionClause *clause2 = &cfg->header->clauses [j];
8+
9+
- if (i != j && clause1->try_offset >= clause2->try_offset && clause1->handler_offset <= clause2->handler_offset) {
10+
- if (clause1->flags == MONO_EXCEPTION_CLAUSE_NONE && clause2->flags != MONO_EXCEPTION_CLAUSE_NONE) {
11+
+ if (clause1->flags == MONO_EXCEPTION_CLAUSE_NONE && clause2->flags == MONO_EXCEPTION_CLAUSE_FINALLY) {
12+
+ if (clause1->try_offset >= clause2->handler_offset && clause1->try_offset <= (clause2->handler_offset + clause2->handler_len)) {
13+
can_deopt = FALSE;
14+
break;
15+
}

0 commit comments

Comments
 (0)