* gen_inst: Use lastmcodeptr instead of last_compiled.
[cacao.git] / src / vm / tables.c
index 21437fbe09b1782f864fb163c016ff2f2bb5dd6a..40b880e64371dd7fc0289f8c9bc19c7bc1d8e9cd 100644 (file)
@@ -36,7 +36,7 @@
        - the heap
        - additional support functions
 
-   $Id: tables.c 2505 2005-05-23 08:23:40Z twisti $
+   $Id: tables.c 3679 2005-11-16 12:12:02Z twisti $
 
 */
 
@@ -48,7 +48,9 @@
 #include <sys/mman.h>
 #include <unistd.h>
 
-#include "types.h"
+#include "config.h"
+#include "vm/types.h"
+
 #include "mm/memory.h"
 #include "native/native.h"
 #include "toolbox/logging.h"
@@ -96,20 +98,17 @@ void init_hashtable(hashtable *hash, u4 size)
 }
 
 
-/*********************** function: tables_init  *****************************
+/* tables_init *****************************************************************
 
-    creates hashtables for symboltables 
-       (called once at startup)                         
+   Creates hashtables for symboltables (called once at startup).
        
-*****************************************************************************/
+*******************************************************************************/
 
-void tables_init()
+bool tables_init(void)
 {
        init_hashtable(&utf_hash,    UTF_HASHSTART);  /* hashtable for utf8-symbols */
        init_hashtable(&string_hash, HASHSTART);      /* hashtable for javastrings */
 
-       classcache_init();
-
 /*     if (opt_eager) */
 /*             list_init(&unlinkedclasses, OFFSET(classinfo, listnode)); */
 
@@ -117,6 +116,10 @@ void tables_init()
        if (opt_stat)
                count_utf_len += sizeof(utf*) * utf_hash.size;
 #endif
+
+       /* everything's ok */
+
+       return true;
 }