Skip to content

Commit d4c251e

Browse files
robarnoldbrson
authored andcommitted
---
yaml --- r: 4431 b: refs/heads/master c: b6be838 h: refs/heads/master i: 4429: bbb900b 4427: 9583320 4423: 740af79 4415: 3be859e v: v3
1 parent b402514 commit d4c251e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: fd7ffd5ac27aa131a858a8a4954c545ece48644b
2+
refs/heads/master: b6be83885f26c02888b17cdca78edb8d125e36cb

trunk/src/rt/memory_region.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ void memory_region::free(void *mem) {
4242
assert(alloc->magic == MAGIC);
4343
#ifdef TRACK_ALLOCATIONS
4444
if (_allocation_list[alloc->index] != alloc) {
45-
printf("free: ptr 0x%" PRIxPTR " is not in allocation_list\n",
46-
(uintptr_t) mem);
45+
printf("free: ptr 0x%" PRIxPTR " (%s) is not in allocation_list\n",
46+
(uintptr_t) &alloc->data, alloc->tag);
4747
_srv->fatal("not in allocation_list", __FILE__, __LINE__, "");
4848
}
4949
else {
@@ -73,8 +73,8 @@ memory_region::realloc(void *mem, size_t size) {
7373
if (_allocation_list[newMem->index] != alloc) {
7474
printf("at index %d, found %p, expected %p\n",
7575
alloc->index, _allocation_list[alloc->index], alloc);
76-
printf("realloc: ptr 0x%" PRIxPTR " is not in allocation_list\n",
77-
(uintptr_t) mem);
76+
printf("realloc: ptr 0x%" PRIxPTR " (%s) is not in allocation_list\n",
77+
(uintptr_t) &alloc->data, alloc->tag);
7878
_srv->fatal("not in allocation_list", __FILE__, __LINE__, "");
7979
}
8080
else {

0 commit comments

Comments
 (0)