aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2017-04-25 13:25:48 -0700
committerChristopher Ferris <cferris@google.com>2017-04-27 17:17:18 -0700
commitbe92dfd38fce4a76e623796b423ee8ddd49fd928 (patch)
tree88996c1f1553bac44fbd68c8bcf2f2312574ac23 /include
parent412112bb89f0bbf60b5a24e42c8072cd301d1581 (diff)
downloadjemalloc-be92dfd38fce4a76e623796b423ee8ddd49fd928.tar.gz
Test: Ran unit tests on bullhead. Change-Id: I54b488114b54415263c0fa22cfe946ecc5883351
Diffstat (limited to 'include')
-rw-r--r--include/jemalloc/internal/arena.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/jemalloc/internal/arena.h b/include/jemalloc/internal/arena.h
index 1ab91ea..0792951 100644
--- a/include/jemalloc/internal/arena.h
+++ b/include/jemalloc/internal/arena.h
@@ -1439,7 +1439,7 @@ arena_dalloc(tsdn_t *tsdn, void *ptr, tcache_t *tcache, bool slow_path)
#if defined(__ANDROID__)
/* Verify the ptr is actually in the chunk. */
if (unlikely(pageind < map_bias || pageind >= chunk_npages)) {
- __libc_fatal("Invalid address %p passed to free: invalid page index", ptr);
+ async_safe_fatal("Invalid address %p passed to free: invalid page index", ptr);
}
#endif
mapbits = arena_mapbits_get(chunk, pageind);
@@ -1447,7 +1447,7 @@ arena_dalloc(tsdn_t *tsdn, void *ptr, tcache_t *tcache, bool slow_path)
#if defined(__ANDROID__)
/* Verify the ptr has been allocated. */
if (unlikely((mapbits & CHUNK_MAP_ALLOCATED) == 0)) {
- __libc_fatal("Invalid address %p passed to free: value not allocated", ptr);
+ async_safe_fatal("Invalid address %p passed to free: value not allocated", ptr);
}
#endif
if (likely((mapbits & CHUNK_MAP_LARGE) == 0)) {