1. 16 6月, 2018 1 次提交
  2. 13 6月, 2018 1 次提交
  3. 12 6月, 2018 7 次提交
  4. 11 6月, 2018 7 次提交
  5. 10 6月, 2018 3 次提交
  6. 09 6月, 2018 8 次提交
  7. 08 6月, 2018 6 次提交
  8. 07 6月, 2018 5 次提交
    • H
      Add misc TypeConverter tests and cleanup the product code (dotnet/corefx#30159) · 79c01611
      Hugh Bellamy 提交于
      * Cleaup misc TypeConverter classes
      
      * Add misc TypeConverter tests
      
      * Fix netfx
      
      * Address PR feedback
      
      * Follow up PR feedback
      
      
      Commit migrated from https://github.com/dotnet/corefx/commit/b996738f877d17b0fe426c75b01f0a8ecdc21e07
      79c01611
    • C
      AIX support for System.Native/PAL (dotnet/corefx#30012) · e5449ef4
      Calvin 提交于
      * AIX support for System.Native/PAL
      
      Somewhat incomplete, but at least on Mono version, gets it compiling,
      so work on it can be done; as I believe the nopped out functions aren't
      hooked up to Mono's BCL yet. For now, if merged, would let me get back
      to working on a patch for UnicodeEncoding ;)
      
      See mono/corefxdotnet/corefx#69 for the description.
      
      This is for Mono, as CoreCLR doesn't run under AIX or i.
      
      * make some of the suggested changes
      
      * fix networking.c, defines in io
      
      * fix errenous define, stupid me
      
      * Forgot to include where AIX deviates from the rest of the world on poll
      
      * Handle F_DUPFD_CLOEXEC properly
      
      * fix possible bug there; be defensive; and explain why
      
      * Don't make AIX change the PAL_POLL* values
      
      These need to be the same on all platforms. Currently, it seems
      that pal_io.c doesn't actually use these values (yet?) so I've
      disabled the check there. pal_console is the only consumer of a
      definition there, but it's not built for Mono and thus AIX yet, so
      I haven't touched it.
      
      Useful dump of AIX poll values:
      
          POLLIN = 0x0001,   /* non-urgent readable data available */
          POLLPRI = 0x0004,  /* urgent readable data available */
          POLLOUT = 0x0002,  /* data can be written without blocked */
          POLLERR = 0x4000,  /* an error occurred */
          POLLHUP = 0x2000,  /* the file descriptor hung up */
          POLLNVAL = 0x8000, /* the requested events were invalid */
      
      And of finding the users of these definitions within the directory
      "srcNative/Unix/System.Native":
      
      $ grep -R POLL | grep -v EPOLL
      pal_console.cpp:    struct pollfd fd = { .fd = STDIN_FILENO, .events = POLLIN };
      pal_io.c:// HACK: AIX values are different; this file doesn't actually use POLL* yet, so
      pal_io.c:c_static_assert(PAL_POLLIN == POLLIN);
      pal_io.c:c_static_assert(PAL_POLLPRI == POLLPRI);
      pal_io.c:c_static_assert(PAL_POLLOUT == POLLOUT);
      pal_io.c:c_static_assert(PAL_POLLERR == POLLERR);
      pal_io.c:c_static_assert(PAL_POLLHUP == POLLHUP);
      pal_io.c:c_static_assert(PAL_POLLNVAL == POLLNVAL);
      pal_io.h:    PAL_POLLIN = 0x0001,   /* non-urgent readable data available */
      pal_io.h:    PAL_POLLPRI = 0x0002,  /* urgent readable data available */
      pal_io.h:    PAL_POLLOUT = 0x0004,  /* data can be written without blocked */
      pal_io.h:    PAL_POLLERR = 0x0008,  /* an error occurred */
      pal_io.h:    PAL_POLLHUP = 0x0010,  /* the file descriptor hung up */
      pal_io.h:    PAL_POLLNVAL = 0x0020, /* the requested events were invalid */
      
      * We actually /do/ need to translate PollEvents after all
      
      stupid me, I didn't notice
      
      * fix ConvertDirent's fallback case to use proper if brace style
      
      * don't make it a TODO as this requires more work later; consistent ifdef
      
      * Initial attempt at CMake detection for things
      
      * Add the CMake checks to pal_config too
      
      * remove my stupid typo
      
      * consistent ifdef/if
      
      * check for poll function
      
      the #else case on pal_networking hasn't changed because it's a stub
      for now. when it becomes a real boy someday, it'll get an #elif for
      `HAVE_POLL`.
      
      * change func check to incl check for poll; mono does this too
      
      
      Commit migrated from https://github.com/dotnet/corefx/commit/eedd1c2784fd1c597428187985df00567bc00f86
      e5449ef4
    • S
      Adding a null value to ConcurrentDictionary using... · d99f09a3
      Stano Peťko 提交于
      Adding a null value to ConcurrentDictionary using System.Collections.IDictionary interface causes exception (dotnet/corefx#28115)
      
      * Adding null value does not throw ArgumentException.
      
      * Consolidated throwing in Add() and indexer.
      
      * Throw value null exception splitted.
      
      * Removed MethodImp attribute.
      
      * Addig value of different type throws correct exception.
      
      * Tests splitted to see which one is failing.
      
      * Consolidated throwing exception if value is incorrect.
      
      * Added attribute to skip some tests on NETFX.
      
      
      Commit migrated from https://github.com/dotnet/corefx/commit/c2d1b0ab278edac895dee7b212eec45a8ea6b795
      d99f09a3
    • H
      Consolidate common code in BufferedGraphics and re-enable some tests (dotnet/corefx#29424) · 04cf3136
      Hugh Bellamy 提交于
      * Consolidate common code in BufferedGraphics and re-enable some tests
      
      * Some related BufferedGraphics cleanup
      
      * Remove DoubleBuffering
      
      * Address PR feedback
      
      
      Commit migrated from https://github.com/dotnet/corefx/commit/5b7674e4ae5cc782e99f50b2919dfdeb29106a46
      04cf3136
    • J
      Fix blittable array instead of copying (dotnet/corefx#30099) · 429dfa9c
      Jeremy Kuhne 提交于
      * System.Drawing is doing a lot of unnecessary work.
      
      This is a start on trying to remove some of it. This change is meant to show the general pattern I intend to follow.
      
      - Fixes the managed array and uses it directly instead of copying multiple times
      - Adds some basic sanity tests to validate that we're getting the expected output
      - Splits existing negative tests into new files with sanity tests
      - Adds a performance project
      
      Output tests were generated and run before making the functional change.
      
      * Address feedback
      
      * Add space after fixed statements.
      
      
      Commit migrated from https://github.com/dotnet/corefx/commit/ba496ae6a9ae055708b630b3f73395a76c2ce6ce
      429dfa9c
  9. 06 6月, 2018 2 次提交