- 17 11月, 2021 5 次提交
-
-
由 Pavel Savara 提交于
- no imports from outer scope - move dotnet to -extern-pre-js - re-enable JS minification with ES2018 - rename main javaScript files to main.js and test-main.js - sample and test script cleanup - rename set_exit_code method - rewrite test start as async method - improve script loading via script element on page in test - use BINDING.bind_static_method instead of INTERNAL where possible - better .d.ts exports - formatted html files - renamed modules.ts to imports.ts which makes more sense - improved error propagation - renamed __initializeImportsAndExports - delayed exit and stdout flush
-
由 Aaron Robinson 提交于
* Update WASM README.md
-
由 Thays Grazia 提交于
* It's working when debug from chrome but not when debug from VS, because it uses callFunctionOn * Remove unrelated change. * Working also on VS. * Working also on VS. * Addressing @lewing and @radical comments * Change ArrayDimensions to be a record and not a class as suggested by @radical. * Addressing @radical comments.
-
由 Thays Grazia 提交于
* Fix memory consumption. * Fix debugger-tests * Fix compilation. * Addressing @lewing PR. * Address @lewing comment * Addressing @radical comment. * Addressing comments. * Addressing @radical comments. * missing return. * Addressing @radical comments * Adding test case Co-authored-by: NLarry Ewing <lewing@microsoft.com> * Fixing tests. * Adding another test case. Thanks @lewing. * Reuse the script. Co-authored-by: NLarry Ewing <lewing@microsoft.com>
-
由 Larry Ewing 提交于
* Unify some code and load mono-config.json using our _fetch_asset
-
- 16 11月, 2021 1 次提交
-
-
由 Pavel Savara 提交于
-
- 14 11月, 2021 3 次提交
-
-
由 Zoltan Varga 提交于
If a generic argument is a primitive type, and it has an interface constraint that enums don't implement, then partial sharing for that instance is not useful, since only the specific primitive type instance will be able to use the shared version. Fixes https://github.com/dotnet/runtime/issues/54910.
-
由 Zoltan Varga 提交于
Emit it in the interpreter when a method is inlined or replaced with an intrinsic. This is needed so the AOT profiler can track these methods.
-
由 Aleksey Kliger (λgeek) 提交于
Implement method name wildcard matching for method descriptions Globbing doesn't work because we don't have g_pattern_match_simple in eglib. But a plain '*' wildcard does work.
-
- 13 11月, 2021 2 次提交
-
-
由 Zoltan Varga 提交于
These are used for example in Span<T>:.ctor ().
-
由 Zoltan Varga 提交于
[mono][jit] Optimize constrained calls to object.GetHashCode () where the receiver is a gshared type constrained to a primitive type/enum. (#61513)
-
- 12 11月, 2021 1 次提交
-
-
由 Radek Doulik 提交于
Measure browser app start times, 2 measurements implemented. First to measure till the JS window.pageshow event, second to measure time when we reach managed C# code. Example ouput: | measurement | time | |-:|-:| | AppStart, Page show | 108.1400ms | | AppStart, Reach managed | 240.2174ms |
-
- 11 11月, 2021 6 次提交
-
-
由 Aaron Robinson 提交于
* coreclr/ Make sure integral types respect sign extension during widen operation for Invoke Array ctor. Remove always false IsStructRequiringStackAllocRetBuf(). * mono/ Create macro define for SPAN_T. * libraries/ Add tests for Reflection Binder type conversion support during Invoke.
-
由 Larry Ewing 提交于
-
由 Pavel Savara 提交于
-
由 Adeel Mujahid 提交于
* Delete unused mono_unbox_int * Fix gcc step display name * Match command invocation order
-
由 Ankit Jain 提交于
Fixes #61067 Fixes #59538
-
由 Larry Ewing 提交于
* [wasm][debugger[ Correct the endian swapping and string implementation
-
- 10 11月, 2021 1 次提交
-
-
由 Katelyn Gadd 提交于
Direct heap writes via Module.HEAPxx[y] = func(...) are incorrect because the left-hand side (according to spec) is evaluated before the right, so if evaluating func(...) causes the heap to grow, the assignment target becomes a detached buffer and the write goes nowhere, breaking your application. This PR introduces a new set of helper functions for memory reads and writes.
-
- 09 11月, 2021 1 次提交
-
-
由 Radek Doulik 提交于
It is not needed anymore, as the flags and stripping is handled by msbuild and cmake. The configuration dependent template parameters are not used anymore.
-
- 08 11月, 2021 2 次提交
-
-
由 Radek Doulik 提交于
* [wasm] Add console version of browser-bench sample Example run: > v8 --expose_wasm runtime.js -- --run Wasm.Console.Bench.Sample.dll -t Json:non,Exceptions:Inline console.info: Arguments: --run,Wasm.Console.Bench.Sample.dll,-t,Json:non,Exceptions:Inline console.debug: MONO_WASM: Initializing mono runtime console.debug: MONO_WASM: ICU data archive(s) loaded, disabling invariant mode console.debug: mono_wasm_runtime_ready fe00e07a-5519-4dfe-b35a-f867dbaf2e28 console.info: Initializing..... Benchmark started Json, non-ASCII text serialize count: 23, per call: 7.565217391304348ms, total: 0.174s ... Exceptions, TryCatchFilterInline count: 1766666, per call: 4.301888415806949E-05ms, total: 0.076s Summary Json, non-ASCII text serialize: 7.478260869565218ms Json, non-ASCII text deserialize: 10.789473684210526ms Exceptions, TryCatchFilterInline: 4.301888415806949E-05ms .md | measurement | time | |-:|-:| | Json, non-ASCII text serialize | 7.4783ms | | Json, non-ASCII text deserialize | 10.7895ms | | Exceptions, TryCatchFilterInline | 0.0430us | * Don't generate v8 script for browser project * Fix option set * Changes for linux/mac * Add link to bench sample README * Pass ARGS to the console version Add info about filtering and options to the README * Show how the table will looks like * Do not sign the assembly To avoid CSC : error CS8002: Referenced assembly 'Mono.Options, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null' does not have a strong name. * Add examples how to run it on windows * Fix interpolated string * Improve formatting * Remove unwanted space
-
由 Vlad Brezae 提交于
* [interp] Fix opcode dump * [interp] Implement tailcalls Before this commit we supported tailcalls only for calls to the same method. Tailcalls are implemented by copying the call arguments to the start of the stack space, followed by replacing of the current executing method. * Re-enable test
-
- 05 11月, 2021 2 次提交
-
-
由 Marek Fišera 提交于
Revert back to eval in wasm InvokeJS with modularization support . Wrap code to evaluate in a function with MONO, BINDING, INTERNAL and module as local variables. Added tests for running js expressions (successful, null, undefined, global scope separation) Co-authored-by: NPavel Savara <pavelsavara@microsoft.com>
-
由 Vlad Brezae 提交于
* [interp] Fix GetType called on ptr constrained to Nullable` We were statically optimizing this call to return the actual constrained class type, which is incorrect for nullables, because boxing of a nullable (as part of the constrained call) actually creates an object with the type of the nullable's value (or null if there is no value). * Add test for GetType call on ptr constrained to nullable
-
- 04 11月, 2021 1 次提交
-
-
由 Ilona Tomkowicz 提交于
-
- 03 11月, 2021 7 次提交
-
-
由 Ilona Tomkowicz 提交于
* Draft of hidden attribute decorator use. * Removed checking custom attributes in the runtime each time the breakpoint is set and moved it to the constructor which is more efficient. * Added test for DebuggerHidden decorator. * By adding a line: using System.Diagnostics; IntAdd method moved down one line what resulted in CreateGoodBreakpoint tests failures. All row numbers in these tests had to be incremented. * Reverted edition of tests not connected with HiddenAttribute. * Added visible method to the HiddenAttribute test. * Applying thaystg review suggestion.
-
由 Rolf Bjarne Kvinge 提交于
Allow nfloat to be in the ObjCRuntime namespace, and make it work for Xamarin.MacCatalyst.dll as well. (#60854) Ref: https://github.com/xamarin/xamarin-macios/pull/13092 Ref: https://github.com/mono/mono/pull/21261
-
由 Adeel Mujahid 提交于
Fixes three warnings: ```sh [ 56%] Building C object mono/mini/CMakeFiles/monosgen-objects.dir/__/utils/mono-mmap.c.o In file included from /runtime/src/mono/mono/utils/mono-mmap.c:23: /usr/include/x86_64-linux-gnu/sys/sysctl.h:21:2: warning: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Wcpp] 21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed." | ^~~~~~~ # snip [ 59%] Building C object mono/mini/CMakeFiles/monosgen-objects.dir/__/utils/mono-time.c.o In file included from /runtime/src/mono/mono/utils/mono-proclib.c:42: /usr/include/x86_64-linux-gnu/sys/sysctl.h:21:2: warning: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Wcpp] 21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed." | ^~~~~~~ [ 59%] Building C object mono/mini/CMakeFiles/monosgen-objects.dir/__/utils/mono-uri.c.o [ 59%] Building C object mono/mini/CMakeFiles/monosgen-objects.dir/__/utils/mono-poll.c.o In file included from /runtime/src/mono/mono/utils/mono-time.c:107: /usr/include/x86_64-linux-gnu/sys/sysctl.h:21:2: warning: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Wcpp] 21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed." | ^~~~~~~ ``` With this PR: 0 warnings - http://sprunge.us/96kyq9 Like in src/libraries/Native, skip linux from sys/sysctl.h check. For other systems, `check_include_files` (instead of `check_include_file` (singular)) when a header depends on another one. Also, simplified few conditions: "is linux" check supersedes "is android".
-
由 Pavel Savara 提交于
* added configSrc - path to MonoConfig json file * added Module.onConfigLoaded callback * added Module.onDotNetReady replacing MonoConfig.loaded_cb * removed loaded_cb, assembly_list, runtime_assets, runtime_asset_sources from MonoConfig * simplified all sample and test projects * renamed no_global_exports to disableDotNet6Compatibility * implement default Module.preInit and Module.onRuntimeInitialized which could be overriden by user code (like Blazor) * re-enable the interp lane
-
由 Jeremy Koritzinsky 提交于
Co-authored-by: NElinor Fung <elfung@microsoft.com>
-
由 Bartosz Klonowski 提交于
* Reorder checks for TypeBuilder.GetConstructor() * Reorder checks for TypeBuilder.GetField() * Adjust unit test to reordered TypeBuilder checks * Use 'not' keyword for pattern matching * Apply the same Type checks for Mono GetConstructor and GetField had the same incorrect checks order comparing to GetMethod as in the CoreCLR. To keep the consistent solution, Mono has also been adjusted. * Check whether a declaring type isn't type's generic definition * Make generic type if contains generic parameters * Suppres UnrecognizedReflectionPattern for GetField and GetConstructor * Move GetMethodType validation method at original order * Test GetConstructor against throwing an exception * Fix: copy-paste error 'type' -> 'constructor' * Align Mono and CoreCLR with nameof for GetConstructor * Use type for argument exception and test against type parameter * Get tests passing on both coreclr and mono. Ensure checks are consistent across GetConstructor, GetField, and GetMethod for both coreclr and mono. * Fix mono exception messages to use SR resources. Co-authored-by: NEric Erhardt <eric.erhardt@microsoft.com>
-
由 Ankit Jain 提交于
This adds support for setting per-project optimization flags, and sets them for these projects so they don't OOM. Microsoft.Extensions.Logging.Generators.Roslyn3.11.Tests Microsoft.Extensions.Logging.Generators.Roslyn4.0.Tests System.Text.Json.SourceGeneration.Roslyn3.11.Unit.Tests System.Text.Json.SourceGeneration.Roslyn4.0.Unit.Tests System.Text.RegularExpressions.Generators.Tests Some individual ones are disabled due to #58226, and #60899 . Additionally, if a AOT build fails, then on linux it dumps the last few lines from dmesg, to help identify it was an oom-kill. Fixes #51961 . Co-authored-by: NLarry Ewing <lewing@microsoft.com>
-
- 02 11月, 2021 3 次提交
-
-
由 Adeel Mujahid 提交于
* Fix gcc warnings during mono linux-x64 build main with Debug configuration: 822 warnings - http://sprunge.us/2GzrDE PR with Debug configuration: 3 warnings related to deprecated sys/sysctl.h includes - http://sprunge.us/JuyA3K after fixing Debug warnings, there were 13 additional warnings in Release configuration: http://sprunge.us/PJCivP PR with Release configuration: (same) 3 warnings - http://sprunge.us/NwKHNE * Address CR feedback
-
由 Steve Pfister 提交于
This change enables device runs on CI by building each test app on the helix instance it was deployed to. In past attempts, we looked at enhancing what takes place on the build machine via build tricks, compressing / cleaning up files early, etc and we could not overcome the need for excessively long timeouts and far more disk space. The change also adopts the patterns established in the wasm test build, giving us the opportunity to support different scenario runs as well as workloads testing in the future.
-
由 Mike McLaughlin 提交于
Fix dump generation issues for VS4Mac Fixes issue: https://github.com/dotnet/runtime/issues/60932 Fix how the load bias is calculate for shared modules Add new generate core dump IPC command that allows the generate crash report flag to be passed through to createdump for VS4Mac. Issue: https://github.com/dotnet/runtime/issues/60775 VS4Mac needs to distinguish between WriteDump/no signal and unknown signal ExceptionType Change unknown signal exception type to 0
-
- 01 11月, 2021 2 次提交
-
-
由 Ilona Tomkowicz 提交于
* Fix for #60340 * Fixes element access for a constant index. * Undo changes made based on https://github.com/dotnet/runtime/pull/60873, that were not intended to be commited. * Removed whitespaces. * Fixed element access by local variables, added tests for element access by object member variables. * Element access by indexing with simple object members is fixed. * Nested element access is fixed, e.g. a[a[a[0]]]. * Added tests for nested element access. Reverted an unintentional change in EvaluateSimpleMethodCallsCheckChangedValue test. * Change test name to enable running test batch on calling ".EvaluateExpressionsWithElementAccess" prefix. * Fix ElementAccessByMemberVariables that was failing after previous changes. * Removed unused namespace import. Regexes are not needed in the new approach. * Added implementatio of evaluation for multidimentional indexing.
-
由 Thays Grazia 提交于
* remove runtimeHelpers.loaded_files and repace it with MONO.loaded_files * disable too aggressive Terser minification * keep some function names un-mangled for stack walk in debugger implementation Co-authored-by: NThays <thaystg@gmail.com> Co-authored-by: Npavelsavara <pavel.savara@gmail.com>
-
- 30 10月, 2021 1 次提交
-
-
由 Ulrich Weigand 提交于
* Remove incorrect conversion in the cfg->r4fp case * Fixes System.Threading.Tests.InterlockedTests.InterlockedExchange_Float
-
- 29 10月, 2021 2 次提交
-
-
由 Pavel Savara 提交于
- simplified fetch and script loading logic/polyfil - clarified runtime-test.js based on Daniel's draft. - extracted mono_wasm_invoke_js and mono_wasm_compile_function out of C macro into proper .ts function - wrapped access to API via globalThis with warning on first use - added cwraps.mono_wasm_add_assembly and cwraps.mono_wasm_load_runtime which Blazor uses - fixed closures for generated functions, so that they don't use global Module reference - mono_wasm_invoke_js now uses new Function instead of eval() - removed deprecated Blazor functions - fixed lint issues Co-authored-by: NDaniel Genkin <genkind@gmail.com>
-
由 Larry Ewing 提交于
* Work around a msbuild bug in MatchOnMetadata * Reenable workload build tests and bump to a 7.0.100 sdk version
-