![]() * [RISC-V] Fix struct info value in crossgen2 * [RISC-V] Fix assertion in crossgen Asserts in `./Interop/StructMarshalling/PInvoke/MarshalStructAsLayoutExp/MarshalStructAsLayoutExp.sh` Error message is `Assertion failed 'roundUp(structSize, TARGET_POINTER_SIZE) == roundUp(loadExtent, TARGET_POINTER_SIZE)' in 'Managed:MarshalStructAsParam_AsExpByVal(int)' during 'Morph - Global' (IL size 2208; hash 0x9fd9734a; MinOpts)` Copied missed codes of GetRiscV64PassStructInRegiste in vm to crossgen2 * Check size in GetRiscV64PassStructInRegisterFlags early, use named constant * Simplify managed branch of GetRiscV64PassStructInRegisterFlags * Fix assert IsPrimitiveType for 2nd field * Handle empty structs * Apply FIELD_SIZE_IS8 flags only when there's at least one float * Handle empty array struct elements * Enregister any field type <= 8 bytes, not just primitives; i.e. pointers and refs are also OK * Simplify native layout branch of GetRiscV64PassStructInRegisterFlags * Rewrite native branch to look at only at native layout info * Calculate flags already in GetFlattenedFieldTypes to avoid returning fake CorElementTypes from native branch * Ignore empty structs during field flattenting because RISC-V calling convention tells us to * Simplify crossgen2 GetRISCV64PassStructInRegisterFlags, make C++ and C# versions of this method look more alike * Remove early exit if nFields == 0 because it wasn't doing much, the loop won't do any work if there's no fields * Return early from HasImpliedRepeatedFields. GetApproxFieldDescListRaw() is null on empty structs, which crashes pFieldStart->GetFieldType() * Cleanup GetRiscV64PassStructInRegisterFlags call sites * Stackalloc field types to avoid GC allocations --------- Co-authored-by: Dong-Heon Jung <clamp03@gmail.com> |
||
---|---|---|
.config | ||
.devcontainer | ||
.github | ||
docs | ||
eng | ||
src | ||
.clang-format | ||
.clang-tidy | ||
.CodeQL.yml | ||
.dockerignore | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.markdownlint.json | ||
.vsconfig | ||
build.cmd | ||
Build.proj | ||
build.sh | ||
CODE-OF-CONDUCT.md | ||
CONTRIBUTING.md | ||
Directory.Build.props | ||
Directory.Build.rsp | ||
Directory.Build.targets | ||
Directory.Solution.props | ||
dotnet.cmd | ||
dotnet.sh | ||
global.json | ||
LICENSE.TXT | ||
NuGet.config | ||
PATENTS.TXT | ||
README.md | ||
SECURITY.md | ||
THIRD-PARTY-NOTICES.TXT |
.NET Runtime
- What is .NET?
- How can I contribute?
- Reporting security issues and security bugs
- Filing issues
- Useful Links
- .NET Foundation
- License
This repo contains the code to build the .NET runtime, libraries and shared host (dotnet
) installers for
all supported platforms, as well as the sources to .NET runtime and libraries.
What is .NET?
Official Starting Page: https://dotnet.microsoft.com
- How to use .NET (with VS, VS Code, command-line CLI)
- Install official releases
- Install daily builds
- Documentation (Get Started, Tutorials, Porting from .NET Framework, API reference, ...)
- Supported OS versions
- Roadmap
- Releases
How can I contribute?
We welcome contributions! Many people all over the world have helped make this project better.
- Contributing explains what kinds of contributions we welcome
- Workflow Instructions explains how to build and test
- Dogfooding .NET explains how to get nightly builds of the runtime and its libraries to test them in your own projects.
Reporting security issues and security bugs
Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) secure@microsoft.com. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the Security TechCenter. You can also find these instructions in this repo's Security doc.
Also see info about related Microsoft .NET Bounty Program.
Filing issues
This repo should contain issues that are tied to the runtime, the class libraries and frameworks, the installation of the dotnet
binary (sometimes known as the muxer
) and the installation of the .NET runtime and libraries.
For other issues, please file them to their appropriate sibling repos. We have links to many of them on our new issue page.
Useful Links
- .NET source index / .NET Framework source index
- API Reference docs
- .NET API Catalog (incl. APIs from daily builds and API usage info)
- API docs writing guidelines - useful when writing /// comments
- .NET Discord Server - a place to discuss the development of .NET and its ecosystem
.NET Foundation
.NET Runtime is a .NET Foundation project.
There are many .NET related projects on GitHub.
- .NET home repo - links to 100s of .NET projects, from Microsoft and the community.
- ASP.NET Core home - the best place to start learning about ASP.NET Core.
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information, see the .NET Foundation Code of Conduct.
General .NET OSS discussions: .NET Foundation Discussions
License
.NET (including the runtime repo) is licensed under the MIT license.