Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
f8608968
Commit
f8608968
authored
Sep 13, 2000
by
Gerd Moellmann
Browse files
Add some comments about DOUG_LEA_MALLOC's use of mmap
and allocation of Lisp data.
parent
670a1031
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
src/ChangeLog
src/ChangeLog
+5
-0
src/alloc.c
src/alloc.c
+6
-2
No files found.
src/ChangeLog
View file @
f8608968
2000-09-13 Gerd Moellmann <gerd@gnu.org>
* alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
and allocation of Lisp data.
2000-09-12 Gerd Moellmann <gerd@gnu.org>
2000-09-12 Gerd Moellmann <gerd@gnu.org>
* xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
* xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
...
...
src/alloc.c
View file @
f8608968
...
@@ -1049,7 +1049,9 @@ allocate_string_data (s, nchars, nbytes)
...
@@ -1049,7 +1049,9 @@ allocate_string_data (s, nchars, nbytes)
size_t
size
=
sizeof
*
b
-
sizeof
(
struct
sdata
)
+
needed
;
size_t
size
=
sizeof
*
b
-
sizeof
(
struct
sdata
)
+
needed
;
#ifdef DOUG_LEA_MALLOC
#ifdef DOUG_LEA_MALLOC
/* Prevent mmap'ing the chunk (which is potentially very large). */
/* Prevent mmap'ing the chunk. Lisp data may not be mmap'ed
because mapped region contents are not preserved in
a dumped Emacs. */
mallopt
(
M_MMAP_MAX
,
0
);
mallopt
(
M_MMAP_MAX
,
0
);
#endif
#endif
...
@@ -1838,7 +1840,9 @@ allocate_vectorlike (len)
...
@@ -1838,7 +1840,9 @@ allocate_vectorlike (len)
size_t
nbytes
;
size_t
nbytes
;
#ifdef DOUG_LEA_MALLOC
#ifdef DOUG_LEA_MALLOC
/* Prevent mmap'ing the chunk (which is potentially very large).. */
/* Prevent mmap'ing the chunk. Lisp data may not be mmap'ed
because mapped region contents are not preserved in
a dumped Emacs. */
mallopt
(
M_MMAP_MAX
,
0
);
mallopt
(
M_MMAP_MAX
,
0
);
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment