Skip to content

Instantly share code, notes, and snippets.

@jitingcn
Created December 2, 2022 03:43
Show Gist options
  • Save jitingcn/4a518dbd1d0112bdb5789a65e6456033 to your computer and use it in GitHub Desktop.
Save jitingcn/4a518dbd1d0112bdb5789a65e6456033 to your computer and use it in GitHub Desktop.
ruby_32_jemalloc.patch
diff --git a/version.c b/version.c
index 653a4238a9..c381e151e4 100644
--- a/version.c
+++ b/version.c
@@ -61,17 +61,17 @@ const int ruby_api_version[] = {
# define RUBY_FULL_REVISION RUBY_REVISION
#endif
#ifdef YJIT_SUPPORT
-#define YJIT_DESCRIPTION " +YJIT " STRINGIZE(YJIT_SUPPORT)
+#define YJIT_DESCRIPTION " +jemalloc +YJIT " STRINGIZE(YJIT_SUPPORT)
#else
-#define YJIT_DESCRIPTION " +YJIT"
+#define YJIT_DESCRIPTION " +jemalloc +YJIT"
#endif
const char ruby_version[] = RUBY_VERSION;
const char ruby_revision[] = RUBY_FULL_REVISION;
const char ruby_release_date[] = RUBY_RELEASE_DATE;
const char ruby_platform[] = RUBY_PLATFORM;
const int ruby_patchlevel = RUBY_PATCHLEVEL;
-const char ruby_description[] = RUBY_DESCRIPTION_WITH("");
-static const char ruby_description_with_mjit[] = RUBY_DESCRIPTION_WITH(" +MJIT");
+const char ruby_description[] = RUBY_DESCRIPTION_WITH(" +jemalloc");
+static const char ruby_description_with_mjit[] = RUBY_DESCRIPTION_WITH(" +jemalloc +MJIT");
static const char ruby_description_with_yjit[] = RUBY_DESCRIPTION_WITH(YJIT_DESCRIPTION);
const char ruby_copyright[] = "ruby - Copyright (C) "
RUBY_BIRTH_YEAR_STR "-" RUBY_RELEASE_YEAR_STR " "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment