Browse files

Add a proper construction to SymbolTable

This makes sure we initialize the necessary values
  • Loading branch information...
1 parent 0f7d453 commit 62002d62871910765ebea3239eaceb49254f36a3 @dbussink dbussink committed Sep 21, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 vm/symboltable.hpp
View
7 vm/symboltable.hpp
@@ -62,6 +62,13 @@ namespace rubinius {
Symbol* lookup(const char* str, size_t length, uint32_t seed);
public:
+
+ SymbolTable()
+ : bytes_used_(0)
+ {
+ lock_.init();
+ }
+
size_t& bytes_used() {
return bytes_used_;
}

0 comments on commit 62002d6

Please sign in to comment.