1. 30 10月, 2020 1 次提交
  2. 09 10月, 2020 1 次提交
  3. 07 10月, 2020 8 次提交
  4. 29 9月, 2020 1 次提交
  5. 25 9月, 2020 3 次提交
    • A
      Merge pull request #1341 from Unity-Technologies/unity-master-fix-1273662 · a0defb57
      Alex Thibodeau 提交于
      Unity master fix case 1273662
      a0defb57
    • Z
      [runtime] Throw a MarshalDirectiveException when returning an array from a pinvoke method. (#20425) · 6a9232ad
      Zoltan Varga 提交于
      Fixes https://github.com/mono/mono/issues/20367.
      
      Some light massaging done by @UnityAlex to cherry pick
      6a9232ad
    • L
      Wait on runtime threads to park on joinable thread list during shutdown. · 7c237169
      lateralusX 提交于
      https://github.com/mono/mono/pull/5599 fixed a race condition during shutdown
      when runtime threads have come parts of their way through detach, but still
      depend on runtime resources, like GC memory. The fix added runtime threads
      to the joinable thread list just before they vanished from mono_thread_manage
      radar making sure shutdown waited upon the thread before cleaning up.
      
      The above fix slightly changed the behavior of the finalizer thread since it
      waits on joinable threads and will now potential block on threads still
      executing code (that involves runtime resources). There’s was an assumption
      around the threads on the joinable thread list that they should be very close
      to complete when added, so join calls coming from the finalizer thread should
      almost never block and if it does, the code that remains to execute should not
      involve runtime operations risking deadlock situations. Adding the thread to
      the list earlier than previously done expose the shutdown to some potential
      theoretical problems.
      
      To mitigate the risk and still solve the race condition this commit adds a
      mechanism to keep track of active runtime threads until they park on joinable
      thread list. The pending counter will be waited upon by the shutdown
      thread, just before it does its regular wait on all joinable threads
      (after finalizer thread has stopped) to make sure all runtime threads have
      been added to the joinable thread list before waiting upon them. Threads are
      added to the joinable thread as late as possible, exactly how it’s been done
      in the past by sgen_client_thread_detach_with_lock. Shutdown thread will wait
      on runtime threads to appear on the list for a short time and if timeout (pending
      runtime thread count not reaching 0 before timeout), it will just print a warning
      and continue shutdown.
      
      Getting into a wait state during shutdown due to runtime threads not yet added to
      joinable threads list should be very rare (hitting previous race condition that was rare),
      triggering the timeout should be even more rare, and if that ever happens, we are exposed
      to shutdown race condition as we have had in the past, but now we at least get a warning in
      the log making it simpler to analyze further.
      
      This commit also fixes a problem with the debugger thread hitting the same race condition as above.
      The shutdown thread stopping the debugger thread didn't completely wait for it to stop using runtime
      resources before continue shutdown sequence. This triggers the same race condition as when shutting
      down regular runtime threads. This commit makes sure stop_debugger_thread waits on the debugger thread
      handle to become signaled (happens at the very end of thread lifetime) before continuing the shutdown
      logic.
      7c237169
  6. 23 9月, 2020 1 次提交
  7. 22 9月, 2020 3 次提交
  8. 21 9月, 2020 1 次提交
  9. 19 9月, 2020 1 次提交
  10. 18 9月, 2020 1 次提交
  11. 16 9月, 2020 1 次提交
  12. 15 9月, 2020 2 次提交
  13. 01 9月, 2020 1 次提交
    • H
      Merge pull request #1335 from... · dcee0dd7
      Harald Kjær Nielsen 提交于
      Merge pull request #1335 from Unity-Technologies/unity-master-method-to-skip-assembly-version-validation
      
      Add option to ignore versions when loading strong named assemblies
      dcee0dd7
  14. 28 8月, 2020 1 次提交
  15. 26 8月, 2020 1 次提交
  16. 21 8月, 2020 2 次提交
  17. 11 8月, 2020 3 次提交
  18. 10 8月, 2020 1 次提交
  19. 07 8月, 2020 1 次提交
  20. 06 8月, 2020 2 次提交
  21. 04 8月, 2020 3 次提交
  22. 31 7月, 2020 1 次提交