Migrated engine to using dlmalloc through eng::

This commit is contained in:
2022-02-24 02:17:41 -05:00
parent acc00289fb
commit f467944095
61 changed files with 631 additions and 590 deletions

View File

@@ -67,8 +67,8 @@
#include "wrap-map.hpp"
#include "wrap-sstream.hpp"
#include "wrap-ostream.hpp"
#include "wrap-deque.hpp"
#include "wrap-ostream.hpp"
#include "luastack.hpp"
#include "streambuffer.hpp"
@@ -111,10 +111,10 @@ public:
void deserialize(StreamBuffer *sb);
// Generate a debug string.
std::string debug_string() const;
eng::string debug_string() const;
private:
std::vector<int64_t> salvaged_;
eng::vector<int64_t> salvaged_;
int64_t next_batch_;
int64_t next_id_;
friend int unittests_idalloc(lua_State *L);
@@ -173,12 +173,12 @@ public:
void patch(StreamBuffer *sb, DebugCollector *dbc);
// Debug string.
std::string debug_string() const;
eng::string debug_string() const;
private:
IdGlobalPool *global_;
int fifo_capacity_;
std::deque<int64_t> ranges_;
eng::deque<int64_t> ranges_;
friend int lfn_unittests_idalloc(lua_State *L);
};