aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/memory.c
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2021-06-06 00:02:57 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2021-06-08 18:39:16 +0200
commit12932ca20847e09be31fbce3bf029389a47b84cd (patch)
treea33c091c7f71b450dd9d008c86d13c3c2fa0acb6 /src/memory.c
parent4686d184967c0c747777c8edcc6b00dc023b8aa9 (diff)
downloadsciteco-12932ca20847e09be31fbce3bf029389a47b84cd.tar.gz
added test suite cases for memory limiting and command execution
* Turned out to be useful in debugging the "Memory limiting during spawning" test case on Windows. * Use UNIX shell emulation (0,128ED) in all test cases. Should be necessary in order to run the testsuite on Windows, but it is currently broken anyway. * avoid <EG> when preprocessing files - use GNU Make's $(shell) instead * Fixes builds on MinGW where there are still problems with <EC> and <EG> at least in the virtual build environment. * Results in a another automake warning about non-POSIX Make constructs. This is not critical since we depend on GNU Make anyway.
Diffstat (limited to 'src/memory.c')
-rw-r--r--src/memory.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/memory.c b/src/memory.c
index 2d93b12..5958224 100644
--- a/src/memory.c
+++ b/src/memory.c
@@ -403,6 +403,11 @@ malloc_trim(size_t pad)
*
* NOTE: At least on Windows 2000, we run twice as fast than
* when polling from a dedicated thread.
+ *
+ * NOTE: On Wine, we cannot recover from hitting the memory
+ * limit, but this is probably because malloc() is actually
+ * forwarded to the glibc which needs malloc_trim().
+ * This should not be a problem on real Windows.
*/
static gsize
teco_memory_get_usage(void)