Changeset 75


Ignore:
Timestamp:
Mar 4, 2008, 6:25:26 PM (10 years ago)
Author:
Sam Hocevar
Message:
  • Fix grow_stack callers so that they don't allocate 4 or 8 times too much memory. Thanks to Fedora maintainer Hans de Goede for reporting this.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/lisp/lisp_gc.cpp

    r62 r75  
    3232*/
    3333
    34 grow_stack<void> l_user_stack(600);       // stack user progs can push data and have it GCed
    35 grow_stack<void *> l_ptr_stack(6000);         // stack of user pointers, user pointers get remapped on GC
    36 
    37 int reg_ptr_total=0;
    38 int reg_ptr_list_size=0;
    39 void ***reg_ptr_list=NULL;
     34// Stack where user programs can push data and have it GCed
     35grow_stack<void> l_user_stack(150);
     36// Stack of user pointers
     37grow_stack<void *> l_ptr_stack(1500);
     38
     39int reg_ptr_total = 0;
     40int reg_ptr_list_size = 0;
     41void ***reg_ptr_list = NULL;
    4042
    4143void register_pointer(void **addr)
Note: See TracChangeset for help on using the changeset viewer.