[Tile-serving] [openstreetmap/mod_tile] Increase XMLCONFIGS_MAX (PR #293)
jocelynj
notifications at github.com
Fri Aug 12 17:05:48 UTC 2022
Function render_thread() was also modified to allocate memory needed for maps on heap instead of stack, so that we don't use too many stack memory.
I didn't change the stack allocation in main() function, but I can do it if asked, by using a std::vector instead of an array for `xmlconfigitem maps[XMLCONFIGS_MAX];`
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/mod_tile/pull/293
-- Commit Summary --
* Allocate maps[] used in render_thread() on heap instead of stack
* Pass number of maps to render_thread()
* Increase XMLCONFIGS_MAX to 100
-- File Changes --
M includes/daemon.h (2)
M includes/gen_tile.h (6)
M includes/render_config.h (2)
M src/daemon.c (11)
M src/gen_tile.cpp (15)
-- Patch Links --
https://github.com/openstreetmap/mod_tile/pull/293.patch
https://github.com/openstreetmap/mod_tile/pull/293.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/pull/293
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/mod_tile/pull/293 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220812/a07480c0/attachment.htm>
More information about the Tile-serving
mailing list