Skip to content

Commit 102f036

Browse files
committed
Merge branch 'main' into wasm_legacy_interop
2 parents 3f2444d + 889b89f commit 102f036

File tree

11 files changed

+258
-265
lines changed

11 files changed

+258
-265
lines changed

.github/workflows/runtime-sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
mkdir ..\artifacts
4848
git status > ..\artifacts\status.txt
4949
git diff > ..\artifacts\diff.txt
50-
- uses: actions/upload-artifact@v3
50+
- uses: actions/upload-artifact@v4
5151
with:
5252
name: results
5353
path: artifacts

eng/Version.Details.xml

Lines changed: 162 additions & 162 deletions
Large diffs are not rendered by default.

eng/Versions.props

Lines changed: 81 additions & 81 deletions
Large diffs are not rendered by default.

src/Framework/App.Runtime/src/Microsoft.AspNetCore.App.Runtime.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ This package is an internal implementation of the .NET Core SDK and is not meant
4343

4444
<!-- Optimize the framework using the crossgen2 tool. Crossgen2 is not currently supported on s390x or ppc64le or armv6 or loongarch64. -->
4545
<CrossgenOutput Condition=" '$(TargetArchitecture)' == 's390x' OR '$(TargetArchitecture)' == 'armv6' OR '$(TargetArchitecture)' == 'ppc64le' OR '$(TargetArchitecture)' == 'loongarch64' ">false</CrossgenOutput>
46+
<!-- VMR doesn't produce valid crossgen for the host/build machine https://github.com/dotnet/source-build/issues/3793 -->
47+
<CrossgenOutput Condition=" '$(DotnetBuildVertical)' == 'true' AND '$(Crossbuild)' == 'true' ">false</CrossgenOutput>
4648
<CrossgenOutput Condition=" '$(CrossgenOutput)' == '' AND '$(Configuration)' != 'Debug' ">true</CrossgenOutput>
4749

4850
<!-- Produce crossgen2 profiling symbols (.ni.pdb or .r2rmap files). -->

src/Hosting/Server.IntegrationTesting/src/Common/RuntimeArchitecture.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ public enum RuntimeArchitecture
88
arm64,
99
x64,
1010
x86,
11-
ppc64le //Power Architecture
11+
ppc64le, //Power Architecture
12+
s390x
1213
}

src/Hosting/Server.IntegrationTesting/src/Common/RuntimeArchitectures.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public static RuntimeArchitecture Current
1717
Architecture.X64 => RuntimeArchitecture.x64,
1818
Architecture.X86 => RuntimeArchitecture.x86,
1919
Architecture.Ppc64le => RuntimeArchitecture.ppc64le,
20+
Architecture.S390x => RuntimeArchitecture.s390x,
2021
_ => throw new NotImplementedException($"Unknown RuntimeInformation.OSArchitecture: {RuntimeInformation.OSArchitecture.ToString()}"),
2122
};
2223
}

src/Identity/Core/src/Data/IdentityEndpointsJsonSerializerContext.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ namespace Microsoft.AspNetCore.Identity.Data;
99
[JsonSerializable(typeof(LoginRequest))]
1010
[JsonSerializable(typeof(RefreshRequest))]
1111
[JsonSerializable(typeof(ResetPasswordRequest))]
12+
[JsonSerializable(typeof(ForgotPasswordRequest))]
1213
[JsonSerializable(typeof(ResendConfirmationEmailRequest))]
1314
[JsonSerializable(typeof(InfoRequest))]
1415
[JsonSerializable(typeof(InfoResponse))]

src/Servers/IIS/AspNetCoreModuleV2/RequestHandlerLib/filewatcher.cpp

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ FILE_WATCHER::FILE_WATCHER() :
2121
FALSE, // not set
2222
nullptr); // name
2323

24-
m_pShutdownEvent = CreateEvent(
25-
nullptr, // default security attributes
26-
TRUE, // manual reset event
27-
FALSE, // not set
28-
nullptr); // name
29-
3024
// Use of TerminateThread for the file watcher thread was eliminated in favor of an event-based
3125
// approach. Out of an abundance of caution, we are temporarily adding an environment variable
3226
// to allow falling back to TerminateThread usage. If all goes well, this will be removed in a
@@ -175,19 +169,8 @@ Win32 error
175169
LOG_INFO(L"Starting file watcher thread");
176170
DBG_ASSERT(pFileMonitor != nullptr);
177171

178-
HANDLE events[2] = { pFileMonitor->m_hCompletionPort, pFileMonitor->m_pShutdownEvent };
179-
180-
DWORD dwEvent = 0;
181172
while (true)
182173
{
183-
// Wait for either a change notification or a shutdown event.
184-
dwEvent = WaitForMultipleObjects(ARRAYSIZE(events), events, FALSE, INFINITE) - WAIT_OBJECT_0;
185-
186-
if (dwEvent == 1)
187-
{
188-
// Shutdown event.
189-
break;
190-
}
191174

192175
DWORD cbCompletion = 0;
193176
OVERLAPPED* pOverlapped = nullptr;
@@ -203,6 +186,11 @@ Win32 error
203186
DBG_ASSERT(success);
204187
(void)success;
205188

189+
if (completionKey == FILE_WATCHER_SHUTDOWN_KEY)
190+
{
191+
break;
192+
}
193+
206194
DBG_ASSERT(pOverlapped != nullptr);
207195
if (pOverlapped != nullptr)
208196
{
@@ -469,7 +457,7 @@ FILE_WATCHER::StopMonitor()
469457
LOG_INFO(L"Stopping file watching.");
470458

471459
// Signal the file watcher thread to exit
472-
SetEvent(m_pShutdownEvent);
460+
PostQueuedCompletionStatus(m_hCompletionPort, 0, FILE_WATCHER_SHUTDOWN_KEY, NULL);
473461
WaitForWatcherThreadExit();
474462

475463
if (m_fShadowCopyEnabled)

src/Servers/IIS/AspNetCoreModuleV2/RequestHandlerLib/filewatcher.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ class FILE_WATCHER{
6060
HandleWrapper<NullHandleTraits> m_hChangeNotificationThread;
6161
HandleWrapper<NullHandleTraits> _hDirectory;
6262
HandleWrapper<NullHandleTraits> m_pDoneCopyEvent;
63-
HandleWrapper<NullHandleTraits> m_pShutdownEvent;
6463
std::atomic_bool m_fThreadExit;
6564
STTIMER m_Timer;
6665
SRWLOCK m_copyLock{};

src/SignalR/common/Http.Connections/src/ConnectionOptionsSetup.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace Microsoft.AspNetCore.Http.Connections;
1010
/// </summary>
1111
public class ConnectionOptionsSetup : IConfigureOptions<ConnectionOptions>
1212
{
13+
// This is a known typo; fixing it would be a breaking change which we don't believe is worth it.
1314
/// <summary>
1415
/// Default timeout value for disconnecting idle connections.
1516
/// </summary>

0 commit comments

Comments
 (0)