|
@ -1,6 +1,6 @@ |
|
|
--- a/lib/mm/memlock.c
|
|
|
--- a/lib/mm/memlock.c
|
|
|
+++ b/lib/mm/memlock.c
|
|
|
+++ b/lib/mm/memlock.c
|
|
|
@@ -161,12 +161,15 @@ static void _allocate_memory(void)
|
|
|
|
|
|
|
|
|
@@ -169,12 +169,15 @@ static void _allocate_memory(void)
|
|
|
* memory on free(), this is good enough for our purposes. |
|
|
* memory on free(), this is good enough for our purposes. |
|
|
*/ |
|
|
*/ |
|
|
while (missing > 0) { |
|
|
while (missing > 0) { |
|
@ -16,7 +16,7 @@ |
|
|
inf = mallinfo(); |
|
|
inf = mallinfo(); |
|
|
|
|
|
|
|
|
if (hblks < inf.hblks) { |
|
|
if (hblks < inf.hblks) { |
|
|
@@ -176,9 +179,12 @@ static void _allocate_memory(void)
|
|
|
|
|
|
|
|
|
@@ -184,9 +187,12 @@ static void _allocate_memory(void)
|
|
|
free(areas[area]); |
|
|
free(areas[area]); |
|
|
_size_malloc_tmp /= 2; |
|
|
_size_malloc_tmp /= 2; |
|
|
} else { |
|
|
} else { |
|
@ -29,7 +29,7 @@ |
|
|
|
|
|
|
|
|
if (area == max_areas && missing > 0) { |
|
|
if (area == max_areas && missing > 0) { |
|
|
/* Too bad. Warn the user and proceed, as things are |
|
|
/* Too bad. Warn the user and proceed, as things are |
|
|
@@ -467,8 +473,13 @@ static void _lock_mem(struct cmd_context
|
|
|
|
|
|
|
|
|
@@ -475,8 +481,13 @@ static void _lock_mem(struct cmd_context
|
|
|
* will not block memory locked thread |
|
|
* will not block memory locked thread |
|
|
* Note: assuming _memlock_count_daemon is updated before _memlock_count |
|
|
* Note: assuming _memlock_count_daemon is updated before _memlock_count |
|
|
*/ |
|
|
*/ |
|
|