[all-commits] [llvm/llvm-project] 083d15: Apply https://reviews.llvm.org/D42519

rgal via All-commits all-commits at lists.llvm.org
Thu Jan 28 04:22:55 PST 2021


  Branch: refs/heads/rgallop/opensource-main/scudo_standalone
  Home:   https://github.com/llvm/llvm-project
  Commit: 083d1519465718fb7f7bbe65597ffc23e612ba19
      https://github.com/llvm/llvm-project/commit/083d1519465718fb7f7bbe65597ffc23e612ba19
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-07 (Thu, 07 Jan 2021)

  Changed paths:
    M clang/lib/Driver/ToolChains/MSVC.cpp
    M compiler-rt/cmake/config-ix.cmake
    M compiler-rt/lib/sanitizer_common/sanitizer_win.cpp
    M compiler-rt/lib/scudo/CMakeLists.txt
    M compiler-rt/lib/scudo/scudo_allocator.cpp
    M compiler-rt/lib/scudo/scudo_crc32.cpp
    M compiler-rt/lib/scudo/scudo_new_delete.cpp
    M compiler-rt/lib/scudo/scudo_platform.h
    M compiler-rt/lib/scudo/scudo_tsd.h
    M compiler-rt/lib/scudo/scudo_tsd_shared.cpp
    M compiler-rt/lib/scudo/scudo_tsd_shared.inc
    A compiler-rt/test/scudo/cxx_threads.cpp
    M compiler-rt/test/scudo/dealloc-race.c
    M compiler-rt/test/scudo/fsanitize.c
    M compiler-rt/test/scudo/interface.cpp
    M compiler-rt/test/scudo/lit.cfg.py
    M compiler-rt/test/scudo/malloc.cpp
    M compiler-rt/test/scudo/memalign.c
    M compiler-rt/test/scudo/mismatch.cpp
    M compiler-rt/test/scudo/overflow.c
    M compiler-rt/test/scudo/preload.cpp
    M compiler-rt/test/scudo/rss.c
    M compiler-rt/test/scudo/secondary.c
    M compiler-rt/test/scudo/symbols.test
    M compiler-rt/test/scudo/threads.c
    M compiler-rt/test/scudo/tsd_destruction.c
    M compiler-rt/test/scudo/valloc.c

  Log Message:
  -----------
  Apply https://reviews.llvm.org/D42519

Tell cmake that Scudo is supported on Windows

Tell cmake that Scudo is supported on Linux

Tell MSVC that Scudo is supported

Need to check that this works on Windows

Change Windows allocator size to be 256GB

Enable scudo on Windows properly

Change literal type to avoid cl warning

Auto-add scudo and scudo_cxx when using -sanitize=scudo to help testing.

This is enough for the tests, though doesn't help as much with large programs like LLVM which drive the linker directly
Use same format for adding libraries as asan above

Avoid adding --gc-sections on Windows

Avoid overriding computeHardwareCRC32 on Windows.

This may cause lower performance on Windows, may need another way or
providing this on Windows.

Only enable builtins (actually required for scudo standalone) if compiler supports them

Tests
Rename getpagesize() to avoid naming conflict on Linux

Move setting up signal handler later as this was firing on the malloc

Remove stray change in SanitizerArgs.cpp

Port threads test from pthreads to c++11 threads for portability as new
test cxx_threads.cpp

Moved mutex.lock() up before starting other threads or they may get the
lock first.

Change to mark as unsupported on windows, not just win32

Convert some more tests to unsupported on windows instead of win32

Mark tests as unsupported

Test for minimal runtime unsupported on Windows

Unsupported on Windows as relies on LD_LIBRARY_PATH.
Or maybe could have parts of this running on Windows

Mark dealloc-race.c as unsupported on Windows as requried fork()

Clang format tests


  Commit: a70f7a805bcb790f799ec0589f0cff0cc834c688
      https://github.com/llvm/llvm-project/commit/a70f7a805bcb790f799ec0589f0cff0cc834c688
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-07 (Thu, 07 Jan 2021)

  Changed paths:
    M llvm/cmake/modules/HandleLLVMOptions.cmake

  Log Message:
  -----------
  Allow LLVM_USE_SANITIZER=Scudo on Linux.

Will work on Linux but not on Windows as this uses the linker to do the link directly.

This won't work as LLVM cmake build system uses link.exe to link so
won't pick up the libraries, which are added by the compiler driver.


  Commit: c733421baf8df53cdfa238a3a7df47bc10f48421
      https://github.com/llvm/llvm-project/commit/c733421baf8df53cdfa238a3a7df47bc10f48421
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-07 (Thu, 07 Jan 2021)

  Changed paths:
    M llvm/lib/Support/CMakeLists.txt

  Log Message:
  -----------
  Hook in to LLVM_INTEGRATED_CRT_ALLOC=scudo

Slightly kludgy

Just hook in malloc, ignore new for now.

Suppress check for integrated_crt_alloc path

Change usage so LLVM_INTEGRATED_CRT_ALLOC is path to scudo lib rather than a hard-coded string

Add check for existence of scudo library

Remove check again, checked further up


  Commit: 3f77db722ebf138b94789cc4a19f8672e183ec8c
      https://github.com/llvm/llvm-project/commit/3f77db722ebf138b94789cc4a19f8672e183ec8c
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-07 (Thu, 07 Jan 2021)

  Changed paths:
    M compiler-rt/cmake/config-ix.cmake
    M compiler-rt/lib/scudo/CMakeLists.txt

  Log Message:
  -----------
  Add COMPILER_RT_HAS_GC_SECTIONS flag, better to check than WIN32


  Commit: c3caba8b1f9fea74f5a54403440f6da47f51e0cd
      https://github.com/llvm/llvm-project/commit/c3caba8b1f9fea74f5a54403440f6da47f51e0cd
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/scudo_allocator.cpp
    M compiler-rt/lib/scudo/scudo_flags.inc

  Log Message:
  -----------
  DEBUGGING, print all allocations when PrintOnAllocation is set


  Commit: a8cdbb9c35fb7071a74af6a13709ad5ef30cea44
      https://github.com/llvm/llvm-project/commit/a8cdbb9c35fb7071a74af6a13709ad5ef30cea44
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/cmake/config-ix.cmake

  Log Message:
  -----------
  Remove requirement to have AUXV as don't have this on Windows.

Probably need better solution (maybe just needing on Linux).


  Commit: 92c5af0e32607a037add58e3603e1bbef8dffcad
      https://github.com/llvm/llvm-project/commit/92c5af0e32607a037add58e3603e1bbef8dffcad
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/cmake/config-ix.cmake
    M compiler-rt/lib/CMakeLists.txt
    M compiler-rt/lib/scudo/standalone/CMakeLists.txt

  Log Message:
  -----------
  Add debugging prints to cmake to see why scudo standalone isn't building.


  Commit: a508cb0601aebd447c52a8d5fa5110b862cd725a
      https://github.com/llvm/llvm-project/commit/a508cb0601aebd447c52a8d5fa5110b862cd725a
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/CMakeLists.txt
    A compiler-rt/lib/scudo/standalone/wwindows.cpp
    A compiler-rt/lib/scudo/standalone/wwindows.h

  Log Message:
  -----------
  Add windows platform files.


  Commit: c03af166b3d2a10ed23bb4cd6c8d0b0c6e0754fe
      https://github.com/llvm/llvm-project/commit/c03af166b3d2a10ed23bb4cd6c8d0b0c6e0754fe
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/common.h

  Log Message:
  -----------
  Include wwindows.h


  Commit: 0390a3b94c71b339a1d15fa1095e18975b5fbb82
      https://github.com/llvm/llvm-project/commit/0390a3b94c71b339a1d15fa1095e18975b5fbb82
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/platform.h

  Log Message:
  -----------
  Add SCUDO_WINDOWS


  Commit: 825e630a7ff9388cfe0bf93a627eb428d9554543
      https://github.com/llvm/llvm-project/commit/825e630a7ff9388cfe0bf93a627eb428d9554543
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/wwindows.cpp
    M compiler-rt/lib/scudo/standalone/wwindows.h

  Log Message:
  -----------
  Fixup wwindows.h and parts of wwindows.cpp


  Commit: a997d3954775098afac494bf5342d15a5ceb4893
      https://github.com/llvm/llvm-project/commit/a997d3954775098afac494bf5342d15a5ceb4893
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/wwindows.cpp

  Log Message:
  -----------
  Delete androidy bits of wwindows.cpp to simplify.


  Commit: 997f17b14ce7b082b14086d442b833f9a320cdfb
      https://github.com/llvm/llvm-project/commit/997f17b14ce7b082b14086d442b833f9a320cdfb
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/platform.h

  Log Message:
  -----------
  Fix detecting Windows 64bit, ignoring 32bit for now.

Should probably determine whether we are supporting 64bit in cmake and
only build standalone if we are.


  Commit: 82da5e97f54c8b82963ef811a8267dcf795ba1e4
      https://github.com/llvm/llvm-project/commit/82da5e97f54c8b82963ef811a8267dcf795ba1e4
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/internal_defs.h

  Log Message:
  -----------
  Set uptr to be 64bit on 64bit Windows

Now I have 10 files not compiling (up from 7)


  Commit: 31f2121b857f31bc04cd52bc24a899f5a5d53b2f
      https://github.com/llvm/llvm-project/commit/31f2121b857f31bc04cd52bc24a899f5a5d53b2f
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/CMakeLists.txt

  Log Message:
  -----------
  Disable some warning so can see wood for the trees.


  Commit: 19ddc7cb41e5f2f6c86cbed2ae7c13fd1731ce13
      https://github.com/llvm/llvm-project/commit/19ddc7cb41e5f2f6c86cbed2ae7c13fd1731ce13
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/mutex.h

  Log Message:
  -----------
  Define M as something on Windows, may well prove to be wrong.


  Commit: 738af4e96c8d9fa29603fb6b1e1cece8d7d21e79
      https://github.com/llvm/llvm-project/commit/738af4e96c8d9fa29603fb6b1e1cece8d7d21e79
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/tsd.h

  Log Message:
  -----------
  Don't include pthread.h on Windows. Will need some replacement in time.


  Commit: 42ed73b63486b838e5f93dd87ec128e5caf8cd17
      https://github.com/llvm/llvm-project/commit/42ed73b63486b838e5f93dd87ec128e5caf8cd17
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/wwindows.cpp

  Log Message:
  -----------
  Hack things out to get to compiling.

Will need to come back and define things in time.

Down to 3 files which don't compile


  Commit: be1451037cce0c6f1eb6b2ea64d6a9b056edcdf2
      https://github.com/llvm/llvm-project/commit/be1451037cce0c6f1eb6b2ea64d6a9b056edcdf2
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/internal_defs.h

  Log Message:
  -----------
  Use stdint values for typedefs instead of trying to guess types


  Commit: b250e5fb8075cd156fd2c6649dd3f70c667d519d
      https://github.com/llvm/llvm-project/commit/b250e5fb8075cd156fd2c6649dd3f70c667d519d
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/internal_defs.h

  Log Message:
  -----------
  Steal definitions of sptr and uptr from sanitizer_internal_defs.h


  Commit: 7bf89ac2c3912261dc6fd82a7a88db3781b7d9ac
      https://github.com/llvm/llvm-project/commit/7bf89ac2c3912261dc6fd82a7a88db3781b7d9ac
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/platform.h

  Log Message:
  -----------
  Try to fix build issue in visual studio.


  Commit: 2dac0ee905c14891926610a1647b3cf0ebecd789
      https://github.com/llvm/llvm-project/commit/2dac0ee905c14891926610a1647b3cf0ebecd789
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/internal_defs.h

  Log Message:
  -----------
  Get platform-specific defines from sanitizer_internal_defs.h


  Commit: ece097268e0f1ea7f201d3470b4ece0f1ce37861
      https://github.com/llvm/llvm-project/commit/ece097268e0f1ea7f201d3470b4ece0f1ce37861
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/platform.h

  Log Message:
  -----------
  Grab MSC_PREREQ from sanitizer_platform.h


  Commit: 58679fbd017e50b4dde8df26d6ba34f36bc57768
      https://github.com/llvm/llvm-project/commit/58679fbd017e50b4dde8df26d6ba34f36bc57768
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/common.h

  Log Message:
  -----------
  Grab some functions from sanitizer_common.h


  Commit: 847727cbc8bdd9db7197c81b7aa6b5c3b9d5f9d0
      https://github.com/llvm/llvm-project/commit/847727cbc8bdd9db7197c81b7aa6b5c3b9d5f9d0
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/internal_defs.h

  Log Message:
  -----------
  Define away WEAK on Windows.


  Commit: b53d104859d5e1c78cc26d51ad1155cbd1ff2068
      https://github.com/llvm/llvm-project/commit/b53d104859d5e1c78cc26d51ad1155cbd1ff2068
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/platform.h

  Log Message:
  -----------
  Make SCUDO_WINDOWS and SCUDO_WINDOWS64 consistent with sanitizer_platform.h


  Commit: 9b01f6fca53a00dbd468f78322ef4094f3f9ea52
      https://github.com/llvm/llvm-project/commit/9b01f6fca53a00dbd468f78322ef4094f3f9ea52
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/include/scudo/interface.h

  Log Message:
  -----------
  Fixup attributes on interface.h

Avoided using the general definitions here as this will be included elsewhere, to avoid pollution.


  Commit: 5a131e012d74ff3a31fb2b660d901efa29f0d3c9
      https://github.com/llvm/llvm-project/commit/5a131e012d74ff3a31fb2b660d901efa29f0d3c9
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/internal_defs.h

  Log Message:
  -----------
  Fix INTERFACE on Windows, based on SANITIZER_INTERFACE_ATTRIBUTE.


  Commit: d0067fb16085d0b6e4a12c466b5decc49ff52cd8
      https://github.com/llvm/llvm-project/commit/d0067fb16085d0b6e4a12c466b5decc49ff52cd8
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/CMakeLists.txt
    A compiler-rt/lib/scudo/standalone/win_defs.h

  Log Message:
  -----------
  Add win_defs.h from sanitizer_win_defs.h


  Commit: 693e73ac27c551f0a7a9bf68e30228d713d54591
      https://github.com/llvm/llvm-project/commit/693e73ac27c551f0a7a9bf68e30228d713d54591
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/internal_defs.h

  Log Message:
  -----------
  Hook in windows weak definition stuff (from sanitizer_common but changed to make it scudoesque.


  Commit: 4ef2a76efa9f6cb29f8d7f4752988bdf86b04c23
      https://github.com/llvm/llvm-project/commit/4ef2a76efa9f6cb29f8d7f4752988bdf86b04c23
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/include/scudo/interface.h

  Log Message:
  -----------
  Set INTERFACE for __scudo_print_stats


  Commit: bc53193e5dc8882f68522e0accb6b46c90b56bf2
      https://github.com/llvm/llvm-project/commit/bc53193e5dc8882f68522e0accb6b46c90b56bf2
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/flags.cpp

  Log Message:
  -----------
  Add weak definition of __scudo_default_options.


  Commit: 57617feaa9af7c20e06ba3d87d4e787f9f1a7a34
      https://github.com/llvm/llvm-project/commit/57617feaa9af7c20e06ba3d87d4e787f9f1a7a34
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/win_defs.h

  Log Message:
  -----------
  Fix include in win_defs.h


  Commit: 6deedb93bb508ffeb0c2fefe1d2a2c749aa7cc70
      https://github.com/llvm/llvm-project/commit/6deedb93bb508ffeb0c2fefe1d2a2c749aa7cc70
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/internal_defs.h
    M compiler-rt/lib/scudo/standalone/wwindows.cpp

  Log Message:
  -----------
  Steal implementations of getNumberOfCPUs, getThreadID, getRandom from sanitizer_win.cpp

Could I just steal the whole of sanitizer_win.cpp?


  Commit: c139623ee0f6507bc95054c0f43a8cc43eb52e07
      https://github.com/llvm/llvm-project/commit/c139623ee0f6507bc95054c0f43a8cc43eb52e07
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/CMakeLists.txt
    M compiler-rt/lib/scudo/standalone/common.h
    A compiler-rt/lib/scudo/standalone/win.cpp
    A compiler-rt/lib/scudo/standalone/win.h
    R compiler-rt/lib/scudo/standalone/wwindows.cpp
    R compiler-rt/lib/scudo/standalone/wwindows.h

  Log Message:
  -----------
  Rename wwindows.[cpp|h] to win.[cpp|h]

Analagous with sanitizer_win.[cpp|h]


  Commit: 0b38e7ae500b9ad01f3b654d6b122f90f012888c
      https://github.com/llvm/llvm-project/commit/0b38e7ae500b9ad01f3b654d6b122f90f012888c
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/common.h
    M compiler-rt/lib/scudo/standalone/win.cpp

  Log Message:
  -----------
  Add implementation of getThreadID from sanitizer_win.cpp


  Commit: 18b989790c8359f80aa63944478cf8f72e2bc696
      https://github.com/llvm/llvm-project/commit/18b989790c8359f80aa63944478cf8f72e2bc696
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/wrappers_c.inc

  Log Message:
  -----------
  Fixup format specifiers for Windows

Will need a more cross platform approach


  Commit: 66507f1f9d246d83f61c34750c05c31cc377dfcb
      https://github.com/llvm/llvm-project/commit/66507f1f9d246d83f61c34750c05c31cc377dfcb
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/atomic_helpers.h

  Log Message:
  -----------
  Comment out all of atomic_helpers.h to see what needs implementing on Windows.


  Commit: 602e45ff6170ac00bce8ca29834d55fc6f571b82
      https://github.com/llvm/llvm-project/commit/602e45ff6170ac00bce8ca29834d55fc6f571b82
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/common.h

  Log Message:
  -----------
  Get processor yield implementation from sanitizer_atomic_msvc.h


  Commit: 7eed8f31e1c3a8fd94caf3003be0b103cd09ee4a
      https://github.com/llvm/llvm-project/commit/7eed8f31e1c3a8fd94caf3003be0b103cd09ee4a
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/include/scudo/interface.h

  Log Message:
  -----------
  Use internal_defs.h in interface.h analagous to sanitizer_internal_defs.h, but that does use scudo_interface_internal.h so maybe the analogy doesn't hold...


  Commit: 05feccc576471f58d9ff5093f0f0d7b2fffc9967
      https://github.com/llvm/llvm-project/commit/05feccc576471f58d9ff5093f0f0d7b2fffc9967
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/win_defs.h

  Log Message:
  -----------
  Fix up header guards and macros to be SCUDOesque rather than from SANITIZERESQUE


  Commit: e7b6251739f5159c03b1d776fe28146f8c7086d1
      https://github.com/llvm/llvm-project/commit/e7b6251739f5159c03b1d776fe28146f8c7086d1
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/win_defs.h

  Log Message:
  -----------
  Remove references to SANITIZER, not doing GO support just yet...


  Commit: 21b00902032d68c489c0d2f718923ac473560549
      https://github.com/llvm/llvm-project/commit/21b00902032d68c489c0d2f718923ac473560549
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/report.cpp

  Log Message:
  -----------
  Implement trap on Windows


  Commit: 5846d12a524896422873bf5669f7f388429c7b88
      https://github.com/llvm/llvm-project/commit/5846d12a524896422873bf5669f7f388429c7b88
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/internal_defs.h

  Log Message:
  -----------
  Add definition INLINE (some places will still use inline).


  Commit: 1f56ed6c1a7538c3878ec4b5bce584c300de56bb
      https://github.com/llvm/llvm-project/commit/1f56ed6c1a7538c3878ec4b5bce584c300de56bb
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/atomic_helpers.h

  Log Message:
  -----------
  Start re-enabling parts of atomic_helpers.h with much borrorwed from sanitizer_atomic_msvc.h


  Commit: 28d86c2f9c9c77c2c686fc65e9eb5bcfa361e3d9
      https://github.com/llvm/llvm-project/commit/28d86c2f9c9c77c2c686fc65e9eb5bcfa361e3d9
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/chunk.h

  Log Message:
  -----------
  Fix for static_assert on size of PackagedHeader vs UnPackedHeader


  Commit: 67b1bc2628b4e8ef624324f622f1243d07df9255
      https://github.com/llvm/llvm-project/commit/67b1bc2628b4e8ef624324f622f1243d07df9255
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/atomic_helpers.h

  Log Message:
  -----------
  Re-add some atomic operations, still not compiling exchange okay.


  Commit: c16caab9831c505f57345c4e3388a808ea3fc13d
      https://github.com/llvm/llvm-project/commit/c16caab9831c505f57345c4e3388a808ea3fc13d
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/win.cpp

  Log Message:
  -----------
  Include atomic_helpers.h in win.cpp


  Commit: 5dfbb27d82bc1f4c2795f1fd505d587f4a4b4f5e
      https://github.com/llvm/llvm-project/commit/5dfbb27d82bc1f4c2795f1fd505d587f4a4b4f5e
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/common.h

  Log Message:
  -----------
  Fix warning on using 32bit types

This is down to the difference between unsigned long on Windows (32bit) and unsigned long on Linux (64bit)


  Commit: 6ac8e4c68a18fa7fff68485ef0dda2ef71b029cc
      https://github.com/llvm/llvm-project/commit/6ac8e4c68a18fa7fff68485ef0dda2ef71b029cc
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/atomic_helpers.h

  Log Message:
  -----------
  Remove whitespace


  Commit: a967b7fc1c5ca802f38c707518512c87e8f87709
      https://github.com/llvm/llvm-project/commit/a967b7fc1c5ca802f38c707518512c87e8f87709
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/win.cpp

  Log Message:
  -----------
  Reimplement getMonotonicTime with std::chrono...


  Commit: 95f2345717794dfa3eb288406718c5429c10510b
      https://github.com/llvm/llvm-project/commit/95f2345717794dfa3eb288406718c5429c10510b
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/win.cpp

  Log Message:
  -----------
  Copy implementation of getMonotonicTime() from sanitizer_win.cpp NanoTime


  Commit: c0d49e644c453eebd53f1b2ea6e4aa7a678f438a
      https://github.com/llvm/llvm-project/commit/c0d49e644c453eebd53f1b2ea6e4aa7a678f438a
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/size_class_map.h

  Log Message:
  -----------
  Suppress 32bit/64bit warning

Need a better solution for this where I can use a 64bit 1 which is 1UL on Linux and 1ULL on Windows.


  Commit: cc80702368f145b89c5ef1ddfd16da09f8865518
      https://github.com/llvm/llvm-project/commit/cc80702368f145b89c5ef1ddfd16da09f8865518
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/tsd_exclusive.h

  Log Message:
  -----------
  Remove tsd_exclusive code for now, concentrate on shared.

Probably not quite this simple on the standalone scudo, but start from
here and fix fix fix.


  Commit: 5d8be93b72d137edc707fdb187c4e6c89fd5096d
      https://github.com/llvm/llvm-project/commit/5d8be93b72d137edc707fdb187c4e6c89fd5096d
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/tsd_exclusive.h

  Log Message:
  -----------
  Put TSD exclusive back in.

Hack out pthread_key_t.


  Commit: e6bb8d80679ae3ce508fdef4cf233240e68931b0
      https://github.com/llvm/llvm-project/commit/e6bb8d80679ae3ce508fdef4cf233240e68931b0
  Author: Russell Gallop <russell.gallop at sony.com>
  Date:   2021-01-28 (Thu, 28 Jan 2021)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/win_defs.h

  Log Message:
  -----------
  Fix compiler warning, WINAPI already defined somewhere.


Compare: https://github.com/llvm/llvm-project/compare/083d15194657%5E...e6bb8d80679a


More information about the All-commits mailing list