Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

compiler: quick and dirty work-around for having too many identifiers

The realloc in grow_table changes the location of symbols. Since we
keep pointers to the symbols around for a while during compilation,
this causes trouble.

This quick and diry hack increases the first allocation well beyond
what the largest patch currently uses. Needs more thought, though.
  • Loading branch information...
commit 5109cd44a71a22c8aea7c214e8fe0e821ab33adc 1 parent 60b0198
Werner Almesberger authored February 26, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  src/compiler/symtab.c
2  src/compiler/symtab.c
@@ -18,7 +18,7 @@
18 18
 #include "symtab.h"
19 19
 
20 20
 
21  
-#define	INITIAL_ALLOC	64
  21
+#define	INITIAL_ALLOC	256
22 22
 
23 23
 
24 24
 struct key_n {

0 notes on commit 5109cd4

Please sign in to comment.
Something went wrong with that request. Please try again.