Upstream status: https://github.com/redis/hiredis-py/pull/159 From c2a20695aae53de7b5160e29675344df0b805fa6 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sat, 18 Mar 2023 15:18:08 -0400 Subject: [PATCH] pack: Replace sdsalloc.h with alloc.h Fixes #158. * src/pack.c: Replace sdsalloc.h with alloc.h. (pack_command): Replace s_malloc with hi_malloc. --- src/pack.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pack.c b/src/pack.c index 443e9d3..23e4004 100644 --- a/src/pack.c +++ b/src/pack.c @@ -16,7 +16,7 @@ extern sds sdscpylen(sds s, const char *t, size_t len); extern sds sdsnewlen(const void *init, size_t initlen); #endif -#include +#include PyObject * pack_command(PyObject *cmd) @@ -32,7 +32,7 @@ pack_command(PyObject *cmd) } Py_ssize_t tokens_number = PyTuple_Size(cmd); - sds *tokens = s_malloc(sizeof(sds) * tokens_number); + sds *tokens = hi_malloc(sizeof(sds) * tokens_number); if (tokens == NULL) { return PyErr_NoMemory(); @@ -118,4 +118,4 @@ cleanup: sdsfreesplitres(tokens, tokens_number); hi_free(lengths); return result; -} \ No newline at end of file +} base-commit: 8adb1b3cb38b82cdc73fa2d72879712da1f74e70 -- 2.39.1 a858f894b406eed4a0aca0cd4c4d8671d'>treecommitdiff
AgeCommit message (Expand)Author
2021-02-27gnu: java-snappy: Fix checks when build machine has too much memory....* gnu/packages/java-compression.scm (java-snappy)[arguments]: Add set-test-memory-size phase. This fixes <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=46780>. Thanks to zimoun for the solving idea. The CachingBufferPoolTest tries to allocate a lot of memory (20GB) and the test succeeds if there is not enough memory available in the JVM. When the build machine has a lot of memory (which is the case on the Guix CI system), the JVM will use more than 20GB as maximum heap size. In consequence, the test fails. The new phase adds a maxmemory size of 2G for the tests. Thus all other tests will have enough memory and the CachingBufferPoolTest will fail. Björn Höfling
2020-08-19gnu: java-snappy: Update to 1.1.7.5....* gnu/packages/java-compression.scm (java-snappy): Update to 1.1.7.5. Tobias Geerinckx-Rice
2020-07-17gnu: maven: Install from pom file....* gnu/packages/java.scm (java-plexus-container-default-bootstrap) (java-plexus-component-annotations, java-plexus-cipher, java-asm) (java-jsr250, java-commons-cli, java-slf4j-api, java-slf4j-simple) (java-bsh, java-jboss-el-api-spec, java-jboss-interceptors-api-spec) (java-cdi-api, java-eclipse-sisu-plexus): Install from pom file. * gnu/packages/maven.scm (maven-resolver-api, maven-resolver-spi) (maven-resolver-util, maven-resolver-connector-basic, maven-resolver-impl) (java-plexus-utils, maven-artifact, maven-model, maven-builder-support) (maven-settings, maven-settings-builder, maven-model-builder) (maven-repository-metadata, maven-resolver-provider, maven-plugin-api) (maven-core, maven-embedder, maven-compat): Install from pom file. Julien Lepiller
2020-07-17gnu: java-plexus-archiver: Update to 4.2.2....* gnu/packages/java.scm (java-plexus-archiver): Update to 4.2.2. (java-plexus-container-default, java-commons-compress) (java-geronimo-xbean-reflect): Install from pom file. (java-guava): Install from pom [source]: Use git source instead of generated source jar. * gnu/packages/java-compression.scm (java-xz, java-iq80-snappy): Install from pom. Julien Lepiller