Skip to content

Merging internal commits for release/9.0 - #109744

Merged
carlossanlop merged 48 commits into
dotnet:release/9.0from
vseanreesermsft:internal-merge-9.0-2024-11-12-1248
Nov 26, 2024
Merged

Merging internal commits for release/9.0#109744
carlossanlop merged 48 commits into
dotnet:release/9.0from
vseanreesermsft:internal-merge-9.0-2024-11-12-1248

Conversation

@vseanreesermsft

Copy link
Copy Markdown

No description provided.

rzikmand others added 30 commits August 28, 2024 15:50
# Description
Use explicit full-path for loading MsQuic.dll - it prevents accidental load of MsQuic.dll from another unintended directory (e.g. CWD = Current Working Directory) if the bundled MsQuic.dll fails to load (which can happen e.g. on WinServer 2012, where MsQuic is not supported).
# Customer Impact
Defense-in-depth
# Regression
No
# Testing
Targeted manual test on affected OS (Windows Server 2012), including self-contained and single-file publish scenarios.
# Risk
Low, changes are contained and have been thoroughly tested manually and in CI suite.
…bstract array types
Jagged arrays in the payload can contain cycles. In that scenario, no value is correct for `ArrayRecord.FlattenedLength`, and `ArrayRecord.GetArray` does not have enough context to know how to handle the cycles. To address these issues, jagged array handling is simplified so that calling code can handle the cycles in the most appropriate way for the application.
Single-dimension arrays can be represented in the payload using abstract types such as `IComparable[]` where the concrete element type is not known. When the concrete element type is known, `ArrayRecord.GetArray` could return either `SZArrayRecord<ClassRecord>` or `SZArrayRecord<object>`; without a concrete type, we need to return something that represents the element abstractly.
1. `ArrayRecord.FlattenedLength` is removed from the API
2. `ArrayRecord.GetArray` now returns `ArrayRecord[]` for jagged arrays instead of trying to populate them
3. `ArrayRecord.GetArray` now returns `SZArrayRecord<SerializationRecord>` for single-dimension arrays instead of either `SZArrayRecord<ClassRecord>` or `SZArrayRecord<object>`
Mirroringand others added 18 commits October 16, 2024 17:30
A call to `Assembly.Location` was added in a recent fix. It has `IL30000` suppressed via `#pragma warning disable`, but that only applies to the compilation of the library itself. Consumers will hit it when doing something like publishing their app as NativeAOT.
This change adds an `[UnconditionalSuppressMessage]` to the `MsQuicApi` static constructor such that `IL30000` should also be suppressed for apps consuming the runtime.
This was caught in an aspnetcore deps flow PR coming from runtime.
@ghostghost added area-codeflow for labeling automated codeflow new-api-needs-documentation labels Nov 12, 2024
@ghost

Copy link
Copy Markdown

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

1 similar comment
@ghost

Copy link
Copy Markdown

Note regarding the new-api-needs-documentation label:

This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change.

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-codeflowfor labeling automated codeflownew-api-needs-documentationServicing-approvedApproved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@vseanreesermsft@carlossanlop@rzikm@elinor-fung