⛏️ index : haiku.git

author Alexander von Gluck IV <kallisti5@unixzen.com> 2022-02-22 14:35:51.0 -06:00:00
committer Alex von Gluck IV <kallisti5@unixzen.com> 2022-03-06 1:10:32.0 +00:00:00
commit
20bdd9b5a85a4be13133cbdc00530ab3d97817a9 [patch]
tree
c141b7bece988d09f43f15fe1395ee1a54efadbb
parent
7e242ef503203e2459375fe3b253e325a103e757
download
20bdd9b5a85a4be13133cbdc00530ab3d97817a9.tar.gz

system/kernel: Increase MAX_PROCESS_ARGS_SIZE; fixes #17612

* Resolves an issue compiling icu70
* FreeBSD is 262,144
* Linux is 2,097,152
* Haiku was 131,072

This roughly doubles the maximum args length, and makes us
function inline with FreeBSD today.  If we're the shortest
straw, we're going to find a lot of things broken (such
as ICU 70.1) Matching FreeBSD means any limitations we see
will also be seen on FreeBSD, making fewer "Haiku issues".

Change-Id: I677c0523a2f27c9e9901fda4180445bcb6da31b2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4991
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
(cherry picked from commit 526669de6f870aff41775898eaa6777a7a3249dd)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4996
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>

Diff

 headers/private/system/user_runtime.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/headers/private/system/user_runtime.h b/headers/private/system/user_runtime.h
index 9110ed2..2c3d8e0 100644
--- a/headers/private/system/user_runtime.h
+++ b/headers/private/system/user_runtime.h
@@ -15,7 +15,7 @@

#define MAGIC_APP_NAME	"_APP_"

#define MAX_PROCESS_ARGS_SIZE	(128 * 1024)
#define MAX_PROCESS_ARGS_SIZE	(256 * 1024)
	// maximal total size needed for process arguments and environment strings