[all-commits] [llvm/llvm-project] f83525: [scudo][standalone] Allow fallback to secondary if...

Kostya Kortchinsky via All-commits all-commits at lists.llvm.org
Fri Mar 20 07:55:41 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f8352502a355fb080300e2cc9de5629614a6c00f
      https://github.com/llvm/llvm-project/commit/f8352502a355fb080300e2cc9de5629614a6c00f
  Author: Kostya Kortchinsky <kostyak at google.com>
  Date:   2020-03-20 (Fri, 20 Mar 2020)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/combined.h
    M compiler-rt/lib/scudo/standalone/tests/combined_test.cpp

  Log Message:
  -----------
  [scudo][standalone] Allow fallback to secondary if primary is full

Summary:
We introduced a way to fallback to the immediately larger size class for
the Primary in the event a region was full, but in the event of the largest
size class, we would just fail.

This change allows to fallback to the Secondary when the last region of
the Primary is full. We also expand the trick to all platforms as opposed
to being Android only, and update the test to cover the new case.

Reviewers: hctim, cferris, eugenis, morehouse, pcc

Subscribers: #sanitizers, llvm-commits

Tags: #sanitizers

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




More information about the All-commits mailing list