Repository navigation
WIP: Native AOT migration of Ecng runtime paths and compatibility verification - #35
Draft
mikasoukhov wants to merge 43 commits into
Draft
mikasoukhov wants to merge 43 commits into
mikasoukhov wants to merge 43 commits into
Conversation
…ies; guard emit factories
…ies; guard emit factories
…ies; guard emit factories
…ies; guard emit factories
…ies; guard emit factories
…ies; guard emit factories
…ies; guard emit factories
…ies; guard emit factories
…-generic JSON under AOT registration
…n native smoke binary
…cations and global lock
…scanning is unavailable in Native AOT
…ate legacy target in CI
…ate legacy target in CI
…ate legacy target in CI
…gacy JArray converter
…IT and native AOT
…IT and native AOT
…IT and native AOT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Actual runtime changes (same PR, no master merge)
Ecng.Common
TypeHelper.CreateInstanceuses registered, statically compiled constructors before the original reflection fallback.TypeHelper.Makeresolves precompiled closed generic types from a concurrent structural registry, avoiding a global lock and repeated candidate metadata arrays.ArrayHelper.CreateArraynow uses static factories for common element types out of the box and allows explicit registration for model arrays.Converter.ArrayCovarianceroutes array creation through the same AOT-safe path.Converter.RegisterTypeNameresolves pre-registered model types before assembly scanning.FastActivator<T>supports explicit delegates and avoids Reflection.Emit and constructor inspection on Native AOT.Ecng.Serialization
SettingsStoragesync/async persistable creation now goes through the registered factory path.JsonSerializerlist/array materialization uses precompiled generic types, constructors and array factories.JArrayToObjectConverter<T>now supports explicit precompiled field accessors in wire order, avoiding Reflection.Emit and runtime field metadata assumptions. JIT reflection fallback remains unchanged.JsonHelperprovides source-generated JSON metadata overloads; non-generic variants are limited to net7+ to preserve net6 support.Ecng.Reflection
FindImplementations<T>usesRegisterImplementation<TContract,TImplementation>registrations in Native AOT rather than scanning loaded assemblies. JIT scanning stays available.Verification