This value seems to be used for some scaling in Firefox (not sure
what exactly but it looks like at least media decode, canvas drawing,
db access)), I don't think there's any reason we would want to
include offline HT "cores" in that count.
OK?
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/nspr/Makefile,v
retrieving revision 1.89
diff -u -p -r1.89 Makefile
--- Makefile 11 Mar 2022 18:50:52 -0000 1.89
+++ Makefile 24 Apr 2022 13:55:47 -0000
@@ -2,6 +2,7 @@ COMMENT = Netscape Portable Runtime
VER= 4.33
DISTNAME= nspr-${VER}
+REVISION= 0
SO_VERSION= 24.0
.for _lib in nspr4 plc4 plds4
Index: patches/patch-nspr_pr_src_misc_prsystem_c
===================================================================
RCS file: patches/patch-nspr_pr_src_misc_prsystem_c
diff -N patches/patch-nspr_pr_src_misc_prsystem_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-nspr_pr_src_misc_prsystem_c 24 Apr 2022 13:55:47 -0000
@@ -0,0 +1,17 @@
+have PR_GetNumberOfProcessors() report online CPUs not all CPUs
+
+Index: nspr/pr/src/misc/prsystem.c
+--- nspr/pr/src/misc/prsystem.c.orig
++++ nspr/pr/src/misc/prsystem.c
+@@ -206,7 +206,11 @@ PR_IMPLEMENT(PRInt32) PR_GetNumberOfProcessors( void )
+ size_t len = sizeof(numCpus);
+
+ mib[0] = CTL_HW;
++#ifdef HW_NCPUONLINE
++ mib[1] = HW_NCPUONLINE;
++#else
+ mib[1] = HW_NCPU;
++
No comments:
Post a Comment