From bf8206c66ef5a1517483c499c69df885b8dcf7fc Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Tue, 17 Mar 2026 16:34:23 +0000 Subject: [PATCH 1/3] [cmake] Update to gc 7.6.26 --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 91d98d86..83d6eab9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -265,8 +265,8 @@ add_executable(nekovm if (STATIC_BOEHMGC OR WIN32) ExternalProject_Add(libatomic_ops ${EP_CONFIGS} - URL https://github.com/bdwgc/libatomic_ops/releases/download/v7.6.14/libatomic_ops-7.6.14.tar.gz - URL_MD5 ee8251f5091b7938d18be4dda843a515 + URL https://github.com/bdwgc/libatomic_ops/releases/download/v7.10.0/libatomic_ops-7.10.0.tar.gz + URL_HASH SHA256=0db3ebff755db170f65e74a64ec4511812e9ee3185c232eeffeacd274190dfb0 CONFIGURE_COMMAND echo skip config BUILD_COMMAND echo skip build INSTALL_COMMAND echo skip install @@ -276,8 +276,8 @@ if (STATIC_BOEHMGC OR WIN32) set ( BoehmGC_CONFIGS DEPENDS libatomic_ops - URL https://github.com/ivmai/bdwgc/releases/download/v7.6.16/gc-7.6.16.tar.gz - URL_MD5 74fb76b6bccf0874cec65b794535a7dd + URL https://github.com/ivmai/bdwgc/releases/download/v7.6.26/gc-7.6.26.tar.gz + URL_HASH SHA256=d38e306efa54e1aebaf283b462a6396849e88b80c350f40a2e9715519374ff0b ) set(GC_INCLUDE_DIR ${CMAKE_BINARY_DIR}/libs/src/BoehmGC-build/include) From e85b6ad636596d68efcfe87f5b578d55085255bb Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Sat, 15 Feb 2025 22:15:46 +0000 Subject: [PATCH 2/3] Enable executable pages in gc for jit mode --- vm/alloc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vm/alloc.c b/vm/alloc.c index 8a3986af..c95f3e44 100644 --- a/vm/alloc.c +++ b/vm/alloc.c @@ -117,6 +117,9 @@ static void null_warn_proc( char *msg, int arg ) { } void neko_gc_init() { +#ifdef NEKO_JIT_ENABLE + GC_set_pages_executable(1); +#endif # ifndef NEKO_WINDOWS // we can't set this on windows with old GC since // it's already initialized through its own DllMain From eb465efba872bd331d0382081a9afcc8043acfac Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Tue, 17 Mar 2026 17:10:53 +0000 Subject: [PATCH 3/3] Fix trailing whitespace --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 83d6eab9..72880708 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -265,7 +265,7 @@ add_executable(nekovm if (STATIC_BOEHMGC OR WIN32) ExternalProject_Add(libatomic_ops ${EP_CONFIGS} - URL https://github.com/bdwgc/libatomic_ops/releases/download/v7.10.0/libatomic_ops-7.10.0.tar.gz + URL https://github.com/bdwgc/libatomic_ops/releases/download/v7.10.0/libatomic_ops-7.10.0.tar.gz URL_HASH SHA256=0db3ebff755db170f65e74a64ec4511812e9ee3185c232eeffeacd274190dfb0 CONFIGURE_COMMAND echo skip config BUILD_COMMAND echo skip build