summaryrefslogtreecommitdiff
path: root/user/cairo/musl-stacksize.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-05 00:45:48 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-05 00:45:48 -0500
commit50996c246981980a7bf0fae1fc0a5907cc2b294a (patch)
treef80465be79d66ffc76a8684a412eaf68efc0ccd3 /user/cairo/musl-stacksize.patch
parent8bab8a78b84e21215cefba433242343e7aaeceed (diff)
downloadpackages-50996c246981980a7bf0fae1fc0a5907cc2b294a.tar.gz
packages-50996c246981980a7bf0fae1fc0a5907cc2b294a.tar.bz2
packages-50996c246981980a7bf0fae1fc0a5907cc2b294a.tar.xz
packages-50996c246981980a7bf0fae1fc0a5907cc2b294a.zip
user/cairo: bump, mark no maintainer, fix
Diffstat (limited to 'user/cairo/musl-stacksize.patch')
-rw-r--r--user/cairo/musl-stacksize.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/user/cairo/musl-stacksize.patch b/user/cairo/musl-stacksize.patch
new file mode 100644
index 000000000..d10469e17
--- /dev/null
+++ b/user/cairo/musl-stacksize.patch
@@ -0,0 +1,23 @@
+Reduce the footprint of stack frame usage by turning
+some large(r) structures as `static __thread` instead.
+
+--- a/src/cairo-rectangular-scan-converter.c 2015-10-27 22:04:21.000000000 +0100
++++ b/src/cairo-rectangular-scan-converter.c 2016-05-07 04:25:26.640851782 +0200
+@@ -489,7 +489,7 @@
+ cairo_span_renderer_t *renderer,
+ rectangle_t **rectangles)
+ {
+- sweep_line_t sweep_line;
++ static __thread sweep_line_t sweep_line;
+ rectangle_t *start, *stop;
+ cairo_status_t status;
+
+@@ -656,7 +656,7 @@
+ cairo_span_renderer_t *renderer)
+ {
+ cairo_rectangular_scan_converter_t *self = converter;
+- rectangle_t *rectangles_stack[CAIRO_STACK_ARRAY_LENGTH (rectangle_t *)];
++ static __thread rectangle_t *rectangles_stack[CAIRO_STACK_ARRAY_LENGTH (rectangle_t *)];
+ rectangle_t **rectangles;
+ struct _cairo_rectangular_scan_converter_chunk *chunk;
+ cairo_status_t status;