summarylogtreecommitdiffstats
path: root/0046-Fix-workMemory-overflowed-over-borne-with-Linux-kern.patch
blob: 14d0257d314bb95610157e59ae9b4f68eea3b142 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From ce02f561b4cc66f1b2ddd15c9fe5ffcbd2b3d566 Mon Sep 17 00:00:00 2001
From: Sergei Litvin <litvindev@gmail.com>
Date: Wed, 22 Jan 2025 14:33:53 +0100
Subject: [PATCH] Fix workMemory overflowed over borne with Linux kernel
 sources

---
 xref-any/src/head2.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/xref-any/src/head2.h b/xref-any/src/head2.h
index 0ab24b7..e6778e4 100644
--- a/xref-any/src/head2.h
+++ b/xref-any/src/head2.h
@@ -21,13 +21,13 @@
 #define SIZE_TMP_MEM		       5000	/* temporary strings, not error messages */
 
 #define SIZE_ppMemory 	  	      20000	/* macro args name in define */
-#define SIZE_mbMemory 		    2000000	/* pending macro expansions */
-#define SIZE_opiMemory		     300000	/* memory used to store options strings */
-#define SIZE_workMemory        10000000	/* parsing stack memory */
+#define SIZE_mbMemory 		   20000000	/* pending macro expansions */
+#define SIZE_opiMemory		    4800000	/* memory used to store options strings */
+#define SIZE_workMemory        20000000	/* parsing stack memory */
 #define SIZE_tmpWorkMemory       400000	/* additional tmp parsing stack memory */
 #define SIZE_ftMemory 		    8000000	/* memory for file (and class) table */
 
-#define SIZE_ppmMemory	       15000000	/* macro definitions or java class files */
+#define SIZE_ppmMemory	       30000000	/* macro definitions or java class files */
 #ifdef SMALL_OLCX_MEMORY
 #define SIZE_olcxMemory        15000000	/* memory for browsing symbol stack */
 #else
@@ -67,7 +67,7 @@
 /* ***************** several (mainly string size) bornes *************** */
 
 #define MAX_REF_LIST_LINE_LEN         1000    /* how long part of src is copied to list */
-#define TMP_STRING_SIZE		           350
+#define TMP_STRING_SIZE		          1000
 #define REFACTORING_TMP_STRING_SIZE  10000
 #define MACRO_NAME_SIZE                500
 #define COMPLETION_STRING_SIZE         500	/* size of line in completion list */
-- 
2.54.0