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