[scudo] Extract steps releaseToOSMaybe into functions in
authorChia-hung Duan <chiahungduan@google.com>
Wed, 5 Jul 2023 20:31:29 +0000 (20:31 +0000)
committerChia-hung Duan <chiahungduan@google.com>
Wed, 5 Jul 2023 20:31:32 +0000 (20:31 +0000)
commitb0ec18a3d10c46b3e483862a4c3ef31196869e0f
tree80daa63aa905961c97d5fef3aa9915e13b66be13
parent4a5d6267832fd3dca1a21b7a9e42eca27ba102ca
[scudo] Extract steps releaseToOSMaybe into functions in

This refactor helps us identify which steps need FLLock so that we can
reduce the holding time of FLLock in SizeClassAllocator64.

Also move the data members to the end of class to align the style in
SizeClassAllocator32.

Reviewed By: cferris

Differential Revision: https://reviews.llvm.org/D152596
compiler-rt/lib/scudo/standalone/primary64.h
compiler-rt/lib/scudo/standalone/release.h