diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2018-08-12 19:23:26 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2018-08-12 19:23:26 -0700 |
commit | c8f6a27e6b27ed5d51cf6c8da5ec080b9952fa99 (patch) | |
tree | 8d9e160dcb6f52f530a00868f342ab08121d1684 /tests/json/test.upbdefs.c | |
parent | b0a6602fc8fddf71ac959d43b4cd82707e6235b9 (diff) |
Enforced that upb_msg lives in an Arena only, and other simplifying.
upb_msg was trying to be general enough that it could either live in
an arena or be allocated with malloc()/free(). This was too much
complexity for too little benefit. We should commit to just saying
that upb_msg is arena-only.
I also ripped out the code to glue upb_msg to the existing
handlers-based encoder/decoder. upb_msg has its own, small, simple
encoder/decoder. I'm trying to whittle down upb_msg to a small
and simple core.
I updated the Lua extension for these changes. Lua needs some more
work to properly create arenas per message. For now I just created
a single global arena.
Diffstat (limited to 'tests/json/test.upbdefs.c')
0 files changed, 0 insertions, 0 deletions