gnucash-on-osx master: Add patch used in 14cc111.

John Ralls jralls at code.gnucash.org
Sat Oct 4 00:10:44 EDT 2025


Updated	 via  https://github.com/Gnucash/gnucash-on-osx/commit/79a9273c (commit)
	from  https://github.com/Gnucash/gnucash-on-osx/commit/14cc1113 (commit)



commit 79a9273c3a64179232ca41e434a5fd7564ede8c1
Author: John Ralls <jralls at ceridwen.us>
Date:   Fri Oct 3 21:10:20 2025 -0700

    Add patch used in 14cc111.

diff --git a/patches/guile-3.0.10-pthread-jit-write-protect.patch b/patches/guile-3.0.10-pthread-jit-write-protect.patch
new file mode 100644
index 0000000..489e175
--- /dev/null
+++ b/patches/guile-3.0.10-pthread-jit-write-protect.patch
@@ -0,0 +1,29 @@
+--- a/libguile/jit.c	2024-02-08 00:05:07
++++ b/libguile/jit.c	2025-09-30 11:16:27
+@@ -1414,7 +1414,7 @@
+ 
+       uint8_t *ret = jit_address (j->jit);
+ 
+-#if defined __APPLE__ && HAVE_PTHREAD_JIT_WRITE_PROTECT_NP
++#if defined __APPLE__ && defined __aarch64__ && HAVE_PTHREAD_JIT_WRITE_PROTECT_NP
+       pthread_jit_write_protect_np(0);
+ #endif
+ 
+@@ -1423,7 +1423,7 @@
+       size_t size;
+       if (!jit_has_overflow (j->jit) && jit_end (j->jit, &size))
+         {
+-#if defined __APPLE__ && HAVE_PTHREAD_JIT_WRITE_PROTECT_NP
++#if defined __APPLE__ && defined __aarch64__ && HAVE_PTHREAD_JIT_WRITE_PROTECT_NP
+           /* protect previous code arena. leave unprotected after emit()
+              since jit_end() also writes to code arena. */
+           pthread_jit_write_protect_np(1);
+@@ -1442,7 +1442,7 @@
+         }
+       else
+         {
+-#if defined __APPLE__ && HAVE_PTHREAD_JIT_WRITE_PROTECT_NP
++#if defined __APPLE__ && defined __aarch64__ && HAVE_PTHREAD_JIT_WRITE_PROTECT_NP
+           /* protect previous code arena */
+           pthread_jit_write_protect_np(1);
+           sys_icache_invalidate(arena->base, arena->size);



Summary of changes:
 .../guile-3.0.10-pthread-jit-write-protect.patch   | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 patches/guile-3.0.10-pthread-jit-write-protect.patch



More information about the gnucash-changes mailing list