aboutsummaryrefslogtreecommitdiff
path: root/firefox/musl-heap-reporter.patch
diff options
context:
space:
mode:
authorWoodpecker CI <emmett1.2miligrams@protonmail.com>2026-02-25 14:56:03 +0000
committerWoodpecker CI <emmett1.2miligrams@protonmail.com>2026-02-25 14:56:03 +0000
commit54d794a1b88e205090af9ec6f89a6daaa9ffa69a (patch)
tree970bdfca3b907d31954573d35ccdcf9cda938846 /firefox/musl-heap-reporter.patch
parent94fd0d6303dcac01d6d52c5a6d2d7504cb35b61e (diff)
downloadalicelinux-54d794a1b88e205090af9ec6f89a6daaa9ffa69a.tar.gz
alicelinux-54d794a1b88e205090af9ec6f89a6daaa9ffa69a.zip
Woodpecker CI 2e1ae7580ce30cfe34521519fea2614da30be3af [SKIP CI]
Diffstat (limited to 'firefox/musl-heap-reporter.patch')
-rw-r--r--firefox/musl-heap-reporter.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/firefox/musl-heap-reporter.patch b/firefox/musl-heap-reporter.patch
new file mode 100644
index 00000000..08f02149
--- /dev/null
+++ b/firefox/musl-heap-reporter.patch
@@ -0,0 +1,33 @@
+From 68dd87a3dc06cf59396dccc3e031761f7237656e Mon Sep 17 00:00:00 2001
+From: "Jory A. Pratt" <anarchy@gentoo.org>
+Date: Mon, 6 Apr 2020 20:09:26 +0200
+Subject: [PATCH 12/30] musl: Only use system heap reporter with glibc
+
+Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
+---
+ xpcom/base/nsMemoryReporterManager.cpp | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/xpcom/base/nsMemoryReporterManager.cpp b/xpcom/base/nsMemoryReporterManager.cpp
+index bd4629c785..b513f81216 100644
+--- a/xpcom/base/nsMemoryReporterManager.cpp
++++ b/xpcom/base/nsMemoryReporterManager.cpp
+@@ -647,6 +647,7 @@ static bool InSharedRegion(mach_vm_address_t aAddr, cpu_type_t aType) {
+ return NS_OK;
+ }
+
++#ifdef __GLIBC__
+ # define HAVE_SYSTEM_HEAP_REPORTER 1
+ // Windows can have multiple separate heaps, but we should not touch non-default
+ // heaps because they may be destroyed at anytime while we hold a handle. So we
+@@ -679,6 +680,7 @@ static bool InSharedRegion(mach_vm_address_t aAddr, cpu_type_t aType) {
+ *aSizeOut = heapSize;
+ return NS_OK;
+ }
++#endif
+
+ struct SegmentKind {
+ DWORD mState;
+--
+2.34.1
+