Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
3ebd9b11
Commit
3ebd9b11
authored
Sep 17, 2019
by
Timothy Trindle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase arenaSpace for emscripten builds
parent
523d4f94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
message.h
c++/src/capnp/message.h
+7
-1
No files found.
c++/src/capnp/message.h
View file @
3ebd9b11
...
...
@@ -133,11 +133,17 @@ public:
private
:
ReaderOptions
options
;
#if defined(__EMSCRIPTEN__)
static
constexpr
size_t
arenaSpacePadding
=
19
;
#else
static
constexpr
size_t
arenaSpacePadding
=
18
;
#endif
// Space in which we can construct a ReaderArena. We don't use ReaderArena directly here
// 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
// extra malloc on every message which could be expensive when processing small messages.
void
*
arenaSpace
[
18
+
sizeof
(
kj
::
MutexGuarded
<
void
*>
)
/
sizeof
(
void
*
)];
void
*
arenaSpace
[
arenaSpacePadding
+
sizeof
(
kj
::
MutexGuarded
<
void
*>
)
/
sizeof
(
void
*
)];
bool
allocatedArena
;
_
::
ReaderArena
*
arena
()
{
return
reinterpret_cast
<
_
::
ReaderArena
*>
(
arenaSpace
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment