fix problem with bucket hashing table size
svn: r9843
This commit is contained in:
parent
faee206b19
commit
c8df8f0793
|
@ -30,8 +30,8 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include "../gc2/gc2_obj.h"
|
#include "../gc2/gc2_obj.h"
|
||||||
|
|
||||||
int scheme_hash_request_count;
|
long scheme_hash_request_count;
|
||||||
int scheme_hash_iteration_count;
|
long scheme_hash_iteration_count;
|
||||||
|
|
||||||
#ifdef MZ_PRECISE_GC
|
#ifdef MZ_PRECISE_GC
|
||||||
static void register_traversers(void);
|
static void register_traversers(void);
|
||||||
|
@ -519,7 +519,7 @@ scheme_make_bucket_table (int size, int type)
|
||||||
|
|
||||||
table = MALLOC_ONE_TAGGED(Scheme_Bucket_Table);
|
table = MALLOC_ONE_TAGGED(Scheme_Bucket_Table);
|
||||||
|
|
||||||
table->size = 2;
|
table->size = 4;
|
||||||
while (table->size < size) {
|
while (table->size < size) {
|
||||||
table->size <<= 1;
|
table->size <<= 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,8 +122,8 @@ extern void scheme_gmp_tls_restore_snapshot(long *s, long *save, int do_free);
|
||||||
static void check_ready_break();
|
static void check_ready_break();
|
||||||
|
|
||||||
extern int scheme_num_read_syntax_objects;
|
extern int scheme_num_read_syntax_objects;
|
||||||
extern int scheme_hash_request_count;
|
extern long scheme_hash_request_count;
|
||||||
extern int scheme_hash_iteration_count;
|
extern long scheme_hash_iteration_count;
|
||||||
#ifdef MZ_USE_JIT
|
#ifdef MZ_USE_JIT
|
||||||
extern int scheme_jit_malloced;
|
extern int scheme_jit_malloced;
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user