- 14 8月, 2022 10 次提交
-
-
由 Aleksey Kliger (λgeek) 提交于
Enables using asset loading to get the `dotnet.worker.js` file that provides the emscripten pthread worker code. Also allows specifying the number of pre-allocated workers that will be created at startup using MSBuild properties. Fixes https://github.com/dotnet/runtime/issues/68509 and fixes https://github.com/dotnet/runtime/issues/68397 and fixes https://github.com/dotnet/runtime/issues/72606 - Override Emscripten `PThread.allocateUnusedWorker` We want to use our own allocateUnusedWorker because we want to load `dotnet.worker.js` using our asset loading machinery. Unfortunately, Emscripten first calls allocateUnusedWorker very early (from `PThread.init`) to pre-allocate the pthread worker pool. So we set Emscripten's own pthread worker pool to size 0 and make our own. This requires calling `loadWasmModuleToWorker` during our startup because Emscripten deletes their code that normally does it (in "receiveInstance" in "createWasm" in "emscripten/src/preamble.js") when the pthread pool size is 0. Also added a pthreadPoolSize field to MonoConfig to allow specifying the initial pthread pool size in mono-config.json - Add `IncludeThreadsWorker` and `PThreadPoolSize` props to WasmAppBuilder `IncludeThreadsWorker` adds the `"js-module-threads"` asset to the `mono-config.json` `PThreadPoolSize` can be -1 or >=0 to specify the number of workers that will be pre-allocated at startup for the pthread worker pool. -1 means use the default compiled into `dotnet.js` - Reorganize the pthreads TS code by moving `Internals` (access API that digs through Emscripten's pthreads implementation) to its own module. And add types. - Replace emscripten's `allocateUnusedWorker` function with our own that goes through the asset loading API. - Update samples - Set up console proxying for the workers. This is done by sending a message from the main thread to the pthread workers with the current `MonoConfig` on our dedicated channel. (This means the proxying is setup asynchronously, so if the worker is busy before it receives the message, it may not start redirecting messages right away). --- * [wasm-mt] Override Emscripten PThread.allocateUnusedWorker We want to use our own allocateUnusedWorker because we want to load `dotnet.worker.js` using our asset loading machinery. Unfortunately, Emscripten first calls allocateUnusedWorker very early (from `PThread.init`) to pre-allocate the pthread worker pool. So we set Emscripten's own pthread worker pool to size 0 and make our own. This requires calling `loadWasmModuleToWorker` during our startup because Emscripten deletes their code that normally does it (in "receiveInstance" in "createWasm" in "emscripten/src/preamble.js") when the pthread pool size is 0. Also added a pthreadPoolSize field to MonoConfig to allow specifying the initial pthread pool size in mono-config.json * Add IncludeThreadsWorker and PThreadPoolSize props to WasmAppBuilder IncludeThreadsWorker adds the js-module-threads asset to the mono-config PThreadPoolSize can be -1 or >=0 to specify the number of workers that will be pre-allocated at startup for the pthread worker pool. -1 means use the default compiled into dotnet.js * Move emscripten PThread internals access to a separate module and add types * Load js-module-threads asset in replacement allocateUnusedWorker * Update samples to explicitly enable threading / perftracing Makes the WasmAppBuilder include the threads worker module * tighten up Internals types * apply review feedback * fix import * Apply suggestions from code review * proxy pthread worker messages to websocket, if enabled use a new MonoThreadMessageApplyMonoConfig message to send the MonoConfig from the main thread to each worker when the workers set up the communication channel to the main thread. then if the diagnosticTracing property is true, redirect the worker console logging to a websocket. Fixes https://github.com/dotnet/runtime/issues/72606Co-authored-by: NMarek Fišera <mara@neptuo.com> Co-authored-by: NAnkit Jain <radical@gmail.com>
-
https://github.com/dotnet/hotreload-utils由 dotnet-maestro[bot] 提交于
Microsoft.DotNet.HotReload.Utils.Generator.BuildTool From Version 1.1.0-alpha.0.22362.1 -> To Version 1.1.0-alpha.0.22408.2 Co-authored-by: Ndotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
-
由 Bruce Forstall 提交于
The code already uses `emitActualTypeSize` in the scalar case; this also uses `genActualType` to get the "actual" type of small types when deciding the intrinsic base type, used in codegen. Fixes #73804
-
由 Stephen Toub 提交于
- Split the one-arg Substring from the two-arg Substring to avoid unnecessary checks in the former - Employ the same argument validation checks as Span, and then delegate to a helper that does more detailed checking to throw the right exception - Avoid duplicative checks in the body - Reorder checks in one-arg overload to do success paths before error paths where possible
-
由 Michal Strehovský 提交于
Fixes #72149.
-
由 Michal Strehovský 提交于
* S,Transactions is a new test with a bunch of COM * PasswordDeriveBytes calls into RequiresUnreferencedCode. It used to be lucky. Not anymore because we trim more.
-
由 Tomas Weinfurt 提交于
* ignore name mismatch when IgnoreInvalidName is set * remove dead code * feedback from review * fix build * split Configuration.Certificates * disable win7 * update test * skip on browser
-
由 Filip Navara 提交于
-
由 Aleksey Kliger (λgeek) 提交于
* [metadata] Do less initialization in mono_class_is_assignable Instead of running the full mono_class_init_internal, just initialize the supertypes and the interface bitmap. Add a flag to mono_class_setup_interface_offsets to only publish the interface bitmap, not the offsets. Also move the SRE hack (setting a field in MonoClass to null and running mono_class_setup_interface_offsets) to a new function mono_class_invalidate_interface_offsets. Also change the field that the SRE hack uses as a sentinel (used to be MonoClass:interfaces_packed, now MonoClass:interface_offsets_packed) Fixes https://github.com/dotnet/runtime/issues/68033 * avoid assert in bitmap_only mode * remove MonoGenericContext need_sync bit it is never set to TRUE * ensure gtd is inited when initing a ginst * remove unused var * add regression test
-
由 Adam Sitnik 提交于
-
- 13 8月, 2022 30 次提交
-
-
由 Eric Erhardt 提交于
* EnableAOTAnalyzer for Microsoft.Extensions.Hosting Fix #71654 Plus clean up the interop in GetParentProcess.
-
由 Charles Stoner 提交于
-
由 Marek Fišera 提交于
* [wasm] Support parameters of type Enum with icalls, with tests * [wasm] WBT: convert sdk path to full, if needed Co-authored-by: NAnkit Jain <radical@gmail.com>
-
由 Steve Molloy 提交于
* Allow for null XmlSerialziers when loading pre-gen from mappings. * Update ref signatures as well.
-
由 Steve Molloy 提交于
* Bring back readability lost in .Net 6, and stop emitting BOM. * Adjust test for wasm.
-
由 Steve Molloy 提交于
* Implement IXmlTextWriterInitializer on the async writer wrapper. * Don't use generics per PR feedback. * Use cast in SetOutput instead of typed field.
-
由 Steve Molloy 提交于
* Fiddle the RefEmit IL for value-type arrays like ImmutableArray. Add tests for expected and non-fatal read-only failures. * Extend fixup to cover other 'Immutable' collection types. * Skip ROC and Immutable tests in pregenerated test suite. Those types aren't in the pregen dll.
-
由 !cake 提交于
* Add serialization test for -0.0 * Fix `DataContractJsonSerializer`'s handling of -0.0 Fixes #69019.
-
由 Steve Molloy 提交于
* Fix Private.Xml solution broken by https://github.com/dotnet/runtime/pull/70706. * Align DCS with 4.8 implementation - minus schema import/export. * External DCS Schema support groundwork. Before DC-tree work and other public APIs. * Added public APIs, but not the DataContract tree yet. * All APIs in. * Cleanup. * Addressed some nits and PR feedback on API. * API nit, more PR feedback. * Fix HasRoot hiding issue. * Add basic schema tests. Fix DataMember bug. * Add /// comments for new schema project. * Fixing bad format in xml comment. * Skip import test on Wasm. * Obsolete old half-coded schema exporter. * Add obsolete attribute in ref project as well. * Removing obsolete for now, since it appears Syndication depends on old class. * Fix the DCJS ref project. * API cleanup. * Project file cleanup * Fix mono issue with reflection access to non-public private fields. * Addressing feedback from API review. * Port NetFx Export/Import test suites to Serializer test projects. * Fix bugs found by newly ported tests. * Account for different newline sizes on different platforms. * Skip flaky test on wasm for now. * Non-draft PR feedback. * Change DC.Members API. Drop KVP shennanigans. * More PR feedback. Co-authored-by: NViktor Hofer <viktor.hofer@microsoft.com>
-
由 Steve Molloy 提交于
This reverts commit c4ea2caa.
-
由 Charles Stoner 提交于
* Update for recent compiler changes for ref fields
-
由 Thays Grazia 提交于
* Adding more tests, including async cases. Some odd ones are broken at this time Co-authored-by: NAnkit Jain <radical@gmail.com>
-
https://github.com/dotnet/linker由 dotnet-maestro[bot] 提交于
Microsoft.NET.ILLink.Tasks From Version 7.0.100-1.22411.2 -> To Version 7.0.100-1.22412.3 Co-authored-by: Ndotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
-
由 Jeremy Koritzinsky 提交于
* Fix the alloc/dealloc mismatch by using a custom parameterized new operator. * Use custom struct wrapper type to avoid errors about placement new
-
由 Theodore Tsirpanis 提交于
-
由 Vladimir Sadov 提交于
* add timing * do not hijack redirected threads * tweak the suspend loop implementation * remove instrumentation
-
由 Steve Harter 提交于
Disables tests to unblock CI. Will investigate further to see if there is an underlying issue. See https://github.com/dotnet/runtime/issues/73792Co-authored-by: NAlexander Köplinger <alex.koeplinger@outlook.com> Co-authored-by: NJose Perez Rodriguez <joperezr@microsoft.com>
-
由 Buyaa Namnan 提交于
* Add UIntPtr conversion * Use existing method for UIntPtr, update nativeaot version Co-authored-by: NJan Kotas <jkotas@microsoft.com>
-
由 Will Smith 提交于
* Disable more ilasm roundtrip tests * Update HugeField1.csproj * Update mainv1.csproj * Update HugeField1.csproj * Update mainv1.csproj
-
由 Drew Kersnar 提交于
* Add AllBitsSet Dim * Apply suggestion from code review * Add unit test for DIM * Apply suggestions from code review Co-authored-by: NTanner Gooding <tagoo@outlook.com> * Apply suggestions from code review * Fix typo causing compile errors Co-authored-by: NTanner Gooding <tagoo@outlook.com>
-
由 Tlakaelel Axayakatl Ceja 提交于
Add annotations to System.Private.DataContractSerialization
-
由 Jakob Botsch Nielsen 提交于
Make sure to properly call SetIndirExceptionFlags and to properly mark defs (that will otherwise hit asserts in rationalization).
-
由 Katya Sokolova 提交于
* Handle downgrade when HTTP/2 not enabled * Update src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs Co-authored-by: NNatalia Kondratyeva <knatalia@microsoft.com> * feedback * Force 1.1 for non-secure web request if policy allows Co-authored-by: NNatalia Kondratyeva <knatalia@microsoft.com>
-
由 Krzysztof Wicher 提交于
* Fix NRT annotations for XmlProcessingInstruction * fix comment, replace assert with ArgumentNullException.ThrowIfNull * add argument name to ArgumentException, fix comment
-
由 Adeel Mujahid 提交于
-
由 Drew Kersnar 提交于
* Fixing problem with invalid parse scientific form of numbers. (#17296) * Preventing OverflowException when parsing scientific form of numbers. (#17296) * Suggestions from review * Added bigger test cases * Adjusted cutoff to 9 digits * Accidental commit Co-authored-by: NMaksim Golev <mixim33@yandex.ru>
-
由 Levi Broderick 提交于
- Add XmlResolver.ThrowingResolver - Migrate all call sites to the new API - Improve error messages on failure Resolves CVE-2022-34716.
-
由 Elinor Fung 提交于
-
由 dotnet-maestro[bot] 提交于
* Update dependencies from https://github.com/dotnet/arcade build 20220810.3 Microsoft.DotNet.ApiCompat , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions From Version 7.0.0-beta.22408.3 -> To Version 7.0.0-beta.22410.3 * Update dependencies from https://github.com/dotnet/arcade build 20220811.2 Microsoft.DotNet.ApiCompat , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.Build.Tasks.Archives , Microsoft.DotNet.Build.Tasks.Feed , Microsoft.DotNet.Build.Tasks.Installers , Microsoft.DotNet.Build.Tasks.Packaging , Microsoft.DotNet.Build.Tasks.TargetFramework , Microsoft.DotNet.Build.Tasks.Templating , Microsoft.DotNet.Build.Tasks.Workloads , Microsoft.DotNet.CodeAnalysis , Microsoft.DotNet.GenAPI , Microsoft.DotNet.GenFacades , Microsoft.DotNet.Helix.Sdk , Microsoft.DotNet.PackageTesting , Microsoft.DotNet.RemoteExecutor , Microsoft.DotNet.SharedFramework.Sdk , Microsoft.DotNet.VersionTools.Tasks , Microsoft.DotNet.XUnitConsoleRunner , Microsoft.DotNet.XUnitExtensions From Version 7.0.0-beta.22408.3 -> To Version 7.0.0-beta.22411.2 Co-authored-by: Ndotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
-
https://github.com/dotnet/xharness由 dotnet-maestro[bot] 提交于
Microsoft.DotNet.XHarness.CLI , Microsoft.DotNet.XHarness.TestRunners.Common , Microsoft.DotNet.XHarness.TestRunners.Xunit From Version 1.0.0-prerelease.22408.1 -> To Version 1.0.0-prerelease.22411.1 Co-authored-by: Ndotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
-