Commit 7cf66cc5 authored by Kenton Varda's avatar Kenton Varda

ReaderArena is slightly larger on MSVC.

parent 7f04f657
...@@ -128,7 +128,7 @@ private: ...@@ -128,7 +128,7 @@ private:
// because we don't want clients to have to #include arena.h, which itself includes a bunch of // because we don't want clients to have to #include arena.h, which itself includes a bunch of
// other headers. We don't use a pointer to a ReaderArena because that would require an // other headers. We don't use a pointer to a ReaderArena because that would require an
// extra malloc on every message which could be expensive when processing small messages. // extra malloc on every message which could be expensive when processing small messages.
void* arenaSpace[17 + sizeof(kj::MutexGuarded<void*>) / sizeof(void*)]; void* arenaSpace[18 + sizeof(kj::MutexGuarded<void*>) / sizeof(void*)];
bool allocatedArena; bool allocatedArena;
_::ReaderArena* arena() { return reinterpret_cast<_::ReaderArena*>(arenaSpace); } _::ReaderArena* arena() { return reinterpret_cast<_::ReaderArena*>(arenaSpace); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment