[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/asan-gc-poisoning af296b19ef 2/2: ; src/alloc.c: Fix styling iss
From: |
Vibhav Pant |
Subject: |
feature/asan-gc-poisoning af296b19ef 2/2: ; src/alloc.c: Fix styling issues. |
Date: |
Wed, 30 Nov 2022 12:31:59 -0500 (EST) |
branch: feature/asan-gc-poisoning
commit af296b19efd5a1f069ea4630b0df6912c2d66ad0
Author: Vibhav Pant <vibhavp@gmail.com>
Commit: Vibhav Pant <vibhavp@gmail.com>
; src/alloc.c: Fix styling issues.
---
src/alloc.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/alloc.c b/src/alloc.c
index 687982f9d5..ee8b7ebf96 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -102,8 +102,7 @@ along with GNU Emacs. If not, see
<https://www.gnu.org/licenses/>. */
Accordingly, objects reused from the free list are unpoisoned.
This feature can be disabled wtih the run-time flag
- `allow_user_poisoning' set to zero.
-*/
+ `allow_user_poisoning' set to zero. */
#if ADDRESS_SANITIZER && defined HAVE_SANITIZER_ASAN_INTERFACE_H \
&& !defined GC_ASAN_POISON_OBJECTS
# define GC_ASAN_POISON_OBJECTS 1
@@ -3384,8 +3383,7 @@ allocate_vector_from_block (ptrdiff_t nbytes)
restbytes = index * roundup_size + VBLOCK_BYTES_MIN - nbytes;
eassert (restbytes % roundup_size == 0);
#if GC_ASAN_POISON_OBJECTS
- /* Ensure that accessing excess bytes does not trigger ASan.
- */
+ /* Ensure that accessing excess bytes does not trigger ASan. */
__asan_unpoison_memory_region (ADVANCE (vector, nbytes),
restbytes);
#endif