[all-commits] [llvm/llvm-project] 58f324: [libc++abi] Add a rate limiter when logging dynami...

Louis Dionne via All-commits all-commits at lists.llvm.org
Tue Apr 21 12:28:02 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 58f32435e8bf8e32c4e2fbe7ffa866ffc52fab13
      https://github.com/llvm/llvm-project/commit/58f32435e8bf8e32c4e2fbe7ffa866ffc52fab13
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2020-04-21 (Tue, 21 Apr 2020)

  Changed paths:
    M libcxxabi/src/private_typeinfo.cpp

  Log Message:
  -----------
  [libc++abi] Add a rate limiter when logging dynamic_cast errors

This upstreams a fix that Howard made a long time ago, where so many
errors would be logged that applications were becoming sluggish. With
this patch, the first three errors will be printed, and after that the
printing frequency decreases exponentially.

_LIBCXX_DYNAMIC_FALLBACK is only enabled on Apple platforms, so this
should be NFC for other platforms.

rdar://14996273

Differential Revision: https://reviews.llvm.org/D78330




More information about the All-commits mailing list