|
|
385abae |
Description: <short summary of the patch>
|
|
|
385abae |
TODO: Put a short summary on the line above and replace this paragraph
|
|
|
385abae |
with a longer explanation of this change. Complete the meta-information
|
|
|
385abae |
with other relevant fields (see below for details). To make it easier, the
|
|
|
385abae |
information below has been extracted from the changelog. Adjust it or drop
|
|
|
385abae |
it.
|
|
|
385abae |
.
|
|
|
385abae |
gcl (2.6.12-23) unstable; urgency=medium
|
|
|
385abae |
.
|
|
|
385abae |
* Version_2_6_13pre28
|
|
|
385abae |
Author: Camm Maguire <camm@debian.org>
|
|
|
385abae |
|
|
|
385abae |
---
|
|
|
385abae |
The information above should follow the Patch Tagging Guidelines, please
|
|
|
385abae |
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
|
|
|
385abae |
are templates for supplementary fields that you might want to add:
|
|
|
385abae |
|
|
|
385abae |
Origin: <vendor|upstream|other>, <url of original patch>
|
|
|
385abae |
Bug: <url in upstream bugtracker>
|
|
|
385abae |
Bug-Debian: https://bugs.debian.org/<bugnumber>
|
|
|
385abae |
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
|
|
|
385abae |
Forwarded: <no|not-needed|url proving that it has been forwarded>
|
|
|
385abae |
Reviewed-By: <name and email of someone who approved the patch>
|
|
|
385abae |
Last-Update: <YYYY-MM-DD>
|
|
|
385abae |
|
|
|
385abae |
--- gcl-2.6.12.orig/o/alloc.c
|
|
|
385abae |
+++ gcl-2.6.12/o/alloc.c
|
|
|
385abae |
@@ -1203,8 +1203,8 @@ object malloc_list=Cnil;
|
|
|
385abae |
|
|
|
385abae |
void
|
|
|
385abae |
maybe_set_hole_from_maxpages(void) {
|
|
|
385abae |
- if (rb_start==heap_end && rb_end==rb_start && rb_limit==rb_start && rb_pointer==rb_start)
|
|
|
385abae |
- resize_hole(available_pages/3,t_relocatable,0);
|
|
|
385abae |
+ if (rb_pointer==rb_begin())
|
|
|
385abae |
+ resize_hole(ufmin(phys_pages,available_pages/3),t_relocatable,0);
|
|
|
385abae |
}
|
|
|
385abae |
|
|
|
385abae |
void
|
|
|
385abae |
@@ -1358,7 +1358,7 @@ gcl_init_alloc(void *cs_start) {
|
|
|
385abae |
set_tm_maxpage(tm_table+t_relocatable,1);
|
|
|
385abae |
nrbpage=0;
|
|
|
385abae |
|
|
|
385abae |
- resize_hole(ufmin(phys_pages,available_pages/3),t_relocatable,0);
|
|
|
385abae |
+ maybe_set_hole_from_maxpages();
|
|
|
385abae |
#ifdef SGC
|
|
|
385abae |
tm_table[(int)t_relocatable].tm_sgc = 50;
|
|
|
385abae |
#endif
|