1. 10 10月, 2020 3 次提交
  2. 09 10月, 2020 15 次提交
  3. 08 10月, 2020 14 次提交
    • G
    • C
      [wasm] Implement System.Console.Clear (#43002) · c533b605
      campersau 提交于
      * [wasm] Implement System.Console.Clear
      
      * Add dummy console.clear implementation if it does not exist
      
      * Initialize console in Clear
      
      * Apply suggestions from codereview
      c533b605
    • M
      [threads] Switch foreign threads to GC Safe in mono_thread_detach (#42758) · c2e9b268
      monojenkins 提交于
      * [test] Invoke from foreign threads then try to GC and shutdown
      
         Even if the non-Mono threads that once called Mono are looping or deadlocked,
         they shouldn't prevent us from doing a GC (in hybrid suspend mode) or from
         shutting down if they detached from the runtime.
      
      * [tests] update .gitignore
      
         Ignore AOT build artifacts in subdirectories of mono/tests/, too
      
      * [threads] Make mono_thread_attach external only
      
         Runtime should use mono_thread_internal_attach
      
      * [threads] Mark mono_thread_detach external only; switch to GC Safe
      
         Runtime threads should call mono_thread_internal_detach
      
         Addresses https://github.com/mono/mono/issues/20290 and https://github.com/mono/mono/issues/20283
      
         If a foreign thread (that was created outside the runtime) calls
         mono_thread_detach, leave it in a preemptively-suspendable state, since we
         can't expect it to coop suspend.
      
         Conversely in mono_thread_attach (external only), ensure that we always leave
         the thread in GC Unsafe (aka RUNNING) state, for cases like
         
             while (cond) {
               t = mono_thread_attach (domain);
               <...>
               mono_thread_detach (t);
             }
      
      * Tests fixup
      
         Delete test that invokes the runtime in a loop forever.
         This is just exercising a race between mono_thread_attach and the
         runtime shutdown.  Instead update the invoke_foreign_thread test to
         loop a few times to check that attach/detach loops are ok.
      
        In the deadlock test, wait for the foreign thread to finish calling
        the runtime before the test thread returns from native back to managed
         to avoid a race between shutdown and the invoke.
      
      
      * [interp] Set context to null when freeing
      
         If a foreign thread runs this loop
      
             for (...) {
               mono_thread_attach;
               mono_runtime_invoke;
               mono_thread_detach;
            }
      
         on the second iteration it will get a ThreadContext that was already freed
         during the detach.  Set the TLS variable to null before freeing the context.
      
      
      * [threads] Switch to GC Unsafe before creating managed thread object
      
         For a re-attaching move the thread state transition to happen earlier so that
         create_internal_thread_object (which does a managed allocation) is always done
         in GC Unsafe mode.
      
      
      * fixup eventpipe to use mono_thread_internal_{attach,detach}
      Co-authored-by: Nlambdageek <lambdageek@users.noreply.github.com>
      Co-authored-by: NAleksey Kliger <alklig@microsoft.com>
      c2e9b268
    • T
      ad88f42f
    • M
      Fix ilasm managed resource lookup on Linux. (#42735) · f7d251fa
      Markus Lindström 提交于
      * Fix ilasm managed resource lookup on Linux.
      
      ILAsm did not properly find managed resources if they were not in the
      working directory of ILAsm itself. While there was a provision for
      Windows-based systems using backslashes as directory separators, there
      was no such provision for *nix-based systems using forward slashes.
      
      This commit enables ILAsm to lookup using both types of directory
      separators.
      
      * Use DIRECTORY_SEPARATOR_CHAR_A instead of hardcoded backslashes.
      
      This fixes path handling on *nix targets.
      
      * Only consider colon as a special path character on Windows.
      f7d251fa
    • L
    • J
    • O
      Do not define X509_new as local_X509_new · 411af53c
      Omair Majid 提交于
      This was only being done for OpenSSL 1.0. X509_new is actually available
      to use in OpenSSL 1.0 and doesn't need to be re-defined:
      https://www.openssl.org/docs/man1.0.2/man3/X509_new.html. That document
      even says: "X509_new() and X509_free() are available in all versions of
      SSLeay and OpenSSL".
      
      The current libraries code doesn't contain an implementation of
      local_X509_new. If we define X509_new as local_X509_new, it breaks the
      build when it's being compiled non-portable against OpenSSL 1.0.
      411af53c
    • B
      Fixes Issue 42787 (#43077) · f3223879
      Brian Sullivan 提交于
      * Fixes Issue 42787
      
      The GS COOKIE phase can create a new Basic Block and this will later cause an assert failure:
      Assertion failed 'topBB->bbNum <= botBB->bbNum'
      Previously this was hidden by an unconditional call to fgRenumberBlocks() which was removed in PR 42664
      
      * Add a call to fgRenumberBlocks in the morphGlobalPhase when it creates new basic blocks
      f3223879
    • S
      Add initial support for Apple Silicon (#40435) · fd094a92
      Steve MacLean 提交于
      * Add CoreCLR compilation support for Apple Silicon
          * Use CMAKE_OSX_ARCH rework
          * Set clang -arch flag
          * Workaround uname arch reporting emulated arch
      
      * Fix native code compilation issues
      * Implement missing osx-arm64 functionality
      * Prototype fix for write no execute issues
      * Strip libunwind pointer authentication bits
      
      * Review feedback
      * Does not fix Arm64 ABI issues
      Co-authored-by: NJan Vorlicek <janvorli@microsoft.com>
      fd094a92
    • A
      Add a new net6.0 TargetFramework (#42709) · 2db71795
      Anirudh Agnihotry 提交于
      * upgrade to net6.0
      
      * add comment and update package version
      
      * address feedback and fix failures
      
      * address feedbacl
      
      * address feedback
      2db71795
    • R
      4fef87c6
    • K
      fix condition to align method at 32 bytes (#42909) · 03a09319
      Kunal Pathak 提交于
      In #2249, we started doing alignment of methods to 32-byte boundary for Tier1. However, a method having loops bypass tiering and hence this condition was never executed. Fixed it to make sure we do the alignment for optimized methods only and don't do it for prejitted methods.
      03a09319
    • C
      Allow enregistering more structs args (#39326) · 65a27aa0
      Carol Eidt 提交于
      * Allow enregistering more structs args
      
      Allow HFAs and other structs with matching fields and registers.
      
      Contributes to #37924
      65a27aa0
  4. 07 10月, 2020 8 次提交