Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
b2ac274
Add support for building with Clang 19 (#109198)
MichaelSimons Dec 3, 2024
7db9d7b
[Release/8.0] Fix FP state restore on macOS exception forwarding (#10…
janvorli Dec 3, 2024
c8d152e
[release/8.0-staging] [browser] Bump serialize-javascript (#108883)
maraf Dec 6, 2024
eda4c70
Support step into a tail call (#110440)
github-actions[bot] Dec 10, 2024
3316399
Update Alpine and Fedora versions (#110492)
richlander Dec 12, 2024
d801ec5
[Test Only] Port the Idna test fixes to support Unicode 15 (#110705)
tarekgh Dec 14, 2024
4f2c30f
Fix crash when pTargetMD is null (#110651)
github-actions[bot] Dec 16, 2024
1a0aa3b
Remove DiagnosticSource reference from Microsoft.Extensions.Logging.A…
ericstj Dec 17, 2024
771cecf
[release/8.0-staging] Fix Tizen linux-armel build (#110792)
akoeplinger Dec 18, 2024
599c02d
[release/8.0-staging] [mono] Chain `SIGSEGV` native crashes to the de…
github-actions[bot] Jan 7, 2025
0ded51b
Fix race condition when cancelling pending HTTP connection attempts (…
MihaZupan Jan 8, 2025
5996804
Remove HttpMetricsEnrichmentContext caching (#110628)
github-actions[bot] Jan 8, 2025
cd49b58
[release/8.0-staging] ILC: Allow OOB reference to upgrade framework a…
github-actions[bot] Jan 8, 2025
9b2b783
Fix nativeaot outerloop (#109010)
github-actions[bot] Jan 9, 2025
15de9cc
[mono][sgen] Add separate card mark function to be used with debug (#…
github-actions[bot] Jan 10, 2025
2f17bdf
[8.0] Guard against empty Accept address (#108334)
wfurt Jan 13, 2025
5a49874
[release/8.0-staging] Update dependencies from dotnet/hotreload-utils…
dotnet-maestro[bot] Jan 13, 2025
6113028
Update dependencies from https://github.com/dotnet/source-build-exter…
dotnet-maestro[bot] Jan 13, 2025
430dcc9
Update dependencies from https://github.com/dotnet/source-build-refer…
dotnet-maestro[bot] Jan 13, 2025
dc1a94b
Merge pull request #110336 from dotnet/merge/release/8.0-to-release/8…
carlossanlop Jan 13, 2025
177d80c
[release/8.0-staging] Fix erroneous success in AsnDecoder.ReadSequence
github-actions[bot] Jan 13, 2025
06672a3
[release/8.0-staging] Re-try loading ENGINE keys with a non-NULL UI_M…
github-actions[bot] Jan 13, 2025
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
Prev Previous commit
Next Next commit
[Release/8.0] Fix FP state restore on macOS exception forwarding (#10…
…9579)

Backport of #105003, #109458 and part of #99255
  • Loading branch information
janvorli authored Dec 3, 2024
commit 7db9d7b35e867fa310a618a7e413591839458722
4 changes: 2 additions & 2 deletions src/coreclr/pal/src/exception/machexception.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ HijackFaultingThread(
if (fIsStackOverflow)
{
// Allocate the minimal stack necessary for handling stack overflow
int stackOverflowStackSize = 7 * 4096;
int stackOverflowStackSize = 15 * 4096;
// Align the size to virtual page size and add one virtual page as a stack guard
stackOverflowStackSize = ALIGN_UP(stackOverflowStackSize, GetVirtualPageSize()) + GetVirtualPageSize();
void* stackOverflowHandlerStack = mmap(NULL, stackOverflowStackSize, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
Expand Down Expand Up @@ -1325,7 +1325,7 @@ void MachExceptionInfo::RestoreState(mach_port_t thread)
kern_return_t machret = thread_set_state(thread, x86_THREAD_STATE, (thread_state_t)&ThreadState, x86_THREAD_STATE_COUNT);
CHECK_MACH("thread_set_state(thread)", machret);

machret = thread_set_state(thread, x86_FLOAT_STATE, (thread_state_t)&FloatState, x86_FLOAT_STATE_COUNT);
machret = thread_set_state(thread, FloatState.ash.flavor, (thread_state_t)&FloatState.ufs, FloatState.ash.count);
CHECK_MACH("thread_set_state(float)", machret);

machret = thread_set_state(thread, x86_DEBUG_STATE, (thread_state_t)&DebugState, x86_DEBUG_STATE_COUNT);
Expand Down
8 changes: 3 additions & 5 deletions src/coreclr/pal/src/exception/machmessage.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,6 @@ class MachMessage
void ReplyToNotification(MachMessage& message, kern_return_t eResult);

private:
// The maximum size in bytes of any Mach message we can send or receive. Calculating an exact size for
// this is non trivial (basically because of the security trailers that Mach appends) but the current
// value has proven to be more than enough so far.
static const size_t kcbMaxMessageSize = 1500;

// The following are structures describing the formats of the Mach messages we understand.

// Request to set the register context on a particular thread.
Expand Down Expand Up @@ -298,6 +293,9 @@ class MachMessage
} data;
} __attribute__((packed));;

// The maximum size in bytes of any Mach message we can send or receive including possible trailers
static const size_t kcbMaxMessageSize = sizeof(mach_message_t) + MAX_TRAILER_SIZE;

// Re-initializes this data structure (to the same state as default construction, containing no message).
void ResetMessage();

Expand Down
Loading