- 16 8月, 2022 10 次提交
-
-
由 Stephen Toub 提交于
In almost every place we use {Last}IndexOf{Any} for a given character or set of characters, we can use {Last}IndexOfAnyExcept for the negated counterpart. This leads to cleaner generated code, and for longer searches, benefits from vectorization. This includes: - In set loops of a small number of negated chars, finding the end of the loop with IndexOfAnyExcept. - In loops followed by a set of a small number of negated chars, using LastIndexOfAnyExcept to find the next location to which to backtrack. - In Singleline .*? lazy loops followed by a set of a small number of negated chars, using IndexOfAnyExcept to find the next location to backtrack to. - In unbounded atomic one and set loops, using IndexOfAnyExcept to find the end of the loop The two places we don't currently use IndexOf* but don't use the *Except variants are: - As part of TryFindNextPossibleStartingPosition. There appear to be relatively few patterns in the wild this would benefit, and we'd need custom logic for finding the set of negated starting characters. - As part of backtracking in a non-Singleline lazy loop. It needs to search for the target plus a \n, which works well when the target is a non-negated char (as it just adds the char to the set of things to search for) but doesn't when working with a negated char (as then different elements of the search have different polarities).
-
由 Egor Bogatov 提交于
Co-authored-by: NMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
-
由 Kunal Pathak 提交于
* Show address offsets in hex * fix the rebase errors * Add support for arm
-
https://github.com/dotnet/runtime由 dotnet-maestro[bot] 提交于
Microsoft.NET.Sdk.IL , Microsoft.NETCore.App.Runtime.win-x64 , Microsoft.NETCore.DotNetHost , Microsoft.NETCore.DotNetHostPolicy , Microsoft.NETCore.ILAsm , runtime.native.System.IO.Ports , System.Text.Json From Version 7.0.0-rc.1.22407.4 -> To Version 7.0.0-rc.1.22414.6 Co-authored-by: Ndotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
-
由 Robert Henry 提交于
-
由 Tom Deseyn 提交于
* Unix: Move 'FileNotFound to DirectoryNotFound' handling to GetExceptionForIoErrno. On Windows, APIs throw DirectoryNotFoundException instead of FileNotFoundException when the base components of a path don't exist. SafeFileHandle, and FileSystemInfo have some specific code to detect that case and to the same on Unix. This change moves that mapping to Interop.IOErrors so it applies to all users of GetExceptionForIoErrno. * Fix OSX test failure. * Fix wasm build. * Review usage of CheckIo/GetExceptionForIoErrno. * Call Directory.Exists instead of using Stat.
-
由 Jeremy Barton 提交于
Utilize the new CertificateChainPolicy option to avoid the second chain build, and remove the need for an AIA fetch of the intermediate. Also changes Assert.Contains with a predicate to build an array, so it pretty-prints better.
-
由 Thays Grazia 提交于
* Implement support to dotnet.setDebuggerProperty from dap and give the Wasm programmer a better debugging experience. * Fix tests.
-
由 Ivan Diaz Sanchez 提交于
* Added a check to allow DLL's with bad debug directory sizes to be used by Crossgen2. Instead of failing unnecessarily, it now emits a warning. * Implemented the suggested PEReader extension method, instead of dealing with exceptions and regional issues. * Removed unnecessary 'using' statement. * Fixed the remaining 'unsafe' Debug Directory reading points within this codebase. * Added a missing 'const' modifier for a constant value. Co-authored-by: NSeeker186 <101211595+Seeker186@users.noreply.github.com>
-
由 dependabot[bot] 提交于
Bump Newtonsoft.Json from 12.0.3 to 13.0.1 in /src/libraries/Common/tests/System/Net/Prerequisites/NetCoreServer (#71180) * Bump Newtonsoft.Json Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.3 to 13.0.1. - [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases) - [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/12.0.3...13.0.1) --- updated-dependencies: - dependency-name: Newtonsoft.Json dependency-type: direct:production ... Signed-off-by: Ndependabot[bot] <support@github.com> * Update src/libraries/Common/tests/System/Net/Prerequisites/NetCoreServer/NetCoreServer.csproj Co-authored-by: NAdeel Mujahid <3840695+am11@users.noreply.github.com> Signed-off-by: Ndependabot[bot] <support@github.com> Co-authored-by: Ndependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: NMiha Zupan <mihazupan.zupan1@gmail.com> Co-authored-by: NAdeel Mujahid <3840695+am11@users.noreply.github.com>
-
- 15 8月, 2022 14 次提交
-
-
由 Michal Strehovský 提交于
Adds support for command line (--descriptor)/property (TrimmmerRootDescriptor) flag with a descriptor.xml file on it. Adds a new node to represent a non-embedded descriptor node Changes program targets to support new functionality Adds tests
-
由 Miha Zupan 提交于
-
由 Marek Fišera 提交于
[wasm] Unmanaged structs are considered blittable if module has `DisableRuntimeMarshallingAttribute` (#73310) * [wasm] Unmanaged structs are considered blittable if module has DisableRuntimeMarshallingAttribute. * Look for the DisableRuntimeMarshallingAttribute on the assembly where pinvoke method is declared. - Cache DisableRuntimeMarshallingAttribute on assembly. - Test without DisableRuntimeMarshallingAttribute. * WasmBuildNative only without AOT. * Unit test with struct in different assembly. * Update, and add some additional tests * [wasm] PInvokeTableGenerator: Avoid crash when processing unmanaged callbacks with function pointers. Co-authored-by: NAnkit Jain <radical@gmail.com>
-
由 Michal Strehovský 提交于
-
由 Michal Strehovský 提交于
-
由 Pavel Savara 提交于
* wip * wip * wip * Single instance in create method. * withMainAssembly * withAsyncFlushOnExit * Fix exporting INTERNAL api. Move all legacy API object creation to dotnet.es6.post.js where module export is created. * fix release build * Move virtualWorkingDirectory initialization to the create method, so it is used in both scenarios (run & create). * Fix applicationArguments in templates. * Update WBT. * Fix ENVIRONMENT_IS_*. * Move pthreadPoolSize to MonoConfig (from internal). Fix merge error. * Fix ConsolePublishAndRun. * Update readme.md in templates. * Update WasmAppHost to always pass application arguments as query string. Add API for parsing applications arguments passed by the WasmAppHost. Co-authored-by: NMarek Fišera <mara@neptuo.com>
-
由 Miha Zupan 提交于
* Unify MaxResponseHeadersLength calculations * Fix ClientSettingsReceived_Success HTTP3 test * Add regression test * Add MaxResponseHeadersLength tests for H2 and H3 * Try to handle WinHttpHandler NetFX tests * Skip H2 tests on WinHttpHandler without ALPN * Try a different condition
-
由 Thays Grazia 提交于
* Session id can be different if there is a redirect, but the message id is sequential. * Also we need another test because Debugger.enable can return an error.
-
由 N0D4N 提交于
-
https://github.com/dotnet/llvm-project由 dotnet-maestro[bot] 提交于
[main] Update dependencies from dotnet/llvm-project
-
由 Vladimir Sadov 提交于
* Fix a stress crash in thread detach at process shutdown. * release alloc context
-
由 Shay Rojansky 提交于
Make sure we don't accidentally set our state to initialized when an exception occurs. Related to #73874.
-
由 Eric Erhardt 提交于
-
由 onehourlate 提交于
* System.Net.WebProxy Bypass regex list optimization Added change tracking to BypassArrayList to avoid reconstructing the bypass regex list at every call of IsBypassed Fix #73703 * Cosmetic changes. DirtyTrackingArrayList => ChangeTrackingArrayList. IsDirty => IsChanged Inner class moved to end Ditched weird bool CheckDirty() with side effect in favor of void ResetIsChanged() * Address PR feedback Co-authored-by: NBlaise Lepeuple <blaise.lepeuple@xelya.com> Co-authored-by: NStephen Toub <stoub@microsoft.com>
-
- 14 8月, 2022 13 次提交
-
-
由 Andrew Au 提交于
-
由 Adeel Mujahid 提交于
-
由 Ankit Jain 提交于
* [wasm] Stop running crypto tests with subtlecrypto * [wasm] Add --web-server-use-cop for samples when running on helix for a threaded build * [wasm] Makefile, honor V=1 and emit binlog * [wasm] PInvokeTableGenerator: emit the type name also, for the warning * [wasm] Improve build for non-default runtime packs .. by using `MSBuild` task to build them instead of invoking `dotnet.sh`. - And fix incremental builds * [wasm] Run smoke tests only for AOT - Building, and running all the tests for EAT case will help catch linker errors that can slip through. * [wasm] Fix linker errors for tests Fixes https://github.com/dotnet/runtime/issues/73901
-
由 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 3 次提交
-
-
由 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>
-