Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Maintenance:5399
mozjs17.openSUSE_Leap_42.1_Update
aarch64-64k-page.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File aarch64-64k-page.patch of Package mozjs17.openSUSE_Leap_42.1_Update
From f17bc0302100c885c84ebd06cd003aad9774cbb4 Mon Sep 17 00:00:00 2001 From: Mark Salter <msalter@redhat.com> Date: Thu, 13 Mar 2014 13:16:27 -0400 Subject: [PATCH] Fix aarch64 support for 64K pagesize A given AArch64 kernel may be using 4K or 64K pagesizes. When running on a kernel with 64K pagesize, this check causes an intentionally generated segfault: js/src/gc/Memory.cpp: void InitMemorySubsystem() { if (size_t(sysconf(_SC_PAGESIZE)) != PageSize) MOZ_CRASH(); } This happens because PageSize is fixed to 4K at build time. This mess has been cleaned up in mozjs-24 by eliminating the build-time PageSize definition. That is too intrusive for mosjs17, so just set PageSize to 64K at build time and eliminate the check. This will work with both 4K and 64K aarch64 kernels. Signed-off-by: Mark Salter <msalter@redhat.com> --- js/src/gc/Heap.h | 2 +- js/src/gc/Heap.h.rej | 11 +++++++++++ js/src/gc/Memory.cpp | 3 +++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 js/src/gc/Heap.h.rej Index: mozjs17.0.0/js/src/gc/Memory.cpp =================================================================== --- mozjs17.0.0.orig/js/src/gc/Memory.cpp +++ mozjs17.0.0/js/src/gc/Memory.cpp @@ -302,8 +302,11 @@ GetPageFaultCount() void InitMemorySubsystem() { + /* aarch64 may have 64KB or 4KB pages */ +#ifndef __aarch64__ if (size_t(sysconf(_SC_PAGESIZE)) != PageSize) MOZ_CRASH(); +#endif } void *
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor