From b7bc6ce598ed1b226ac97f8b3b9ca4f230ae73db Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 10 Jul 2015 08:45:35 -0600 Subject: [PATCH] Update ChangeLog --- ChangeLog | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 654f74ed63..1a5036db50 100755 --- a/ChangeLog +++ b/ChangeLog @@ -10678,3 +10678,17 @@ From Sebastien Lorquet * arch/arm/src/lpc43xx/chip/lpc4310203050_pinconfig.h: Correct some LPC4350 GPIO pin configurations. From Alessandro Temil (2015-07-09). + * mm/umm_heap, include/nuttx/kmalloc.h, userspace.h, mm/mm.h, and all + configurations that support protected mode: Redesigned how the user + space heap is accessed from the kernel code in protected mode. It + used to call memory management functions in user space via function + pointers in the userspace interface. That is inefficient because the + first thing that those memory management functions do is to trap back + into the kernel to get the current PID. Worse, that operation can be + fatal is certain fragile situations such as when a task is exiting. + The solution is to remove all of the memory management function calls + from the interface. Instead, the interface exports the users pace + heap structure and then kernel size implementations of those memory + management functions will operate on the userspace heap structure. + This avoids the unnecessary system calls and, more importantly, + failures do to freeing memory when a test exits (2015-07-10).