Skip to content
Snippets Groups Projects
Commit 158bc5ad authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Merge branch 'patches/bug10026' into 8.0

* patches/bug10026:
  Standards.JSON: Release the interpreter lock every now and then.
parents ef3530fe 249e848d
No related branches found
No related tags found
No related merge requests found
......@@ -214,6 +214,7 @@ static void encode_mapcont_canon (struct encode_context *ctx, struct mapping *m)
if (notfirst) {
int indent = ctx->indent;
fast_check_threads_etc(8);
string_builder_putchar (buf, ',');
if (indent >= 0) {
string_builder_putchar (buf, '\n');
......@@ -300,6 +301,7 @@ static void json_encode_recur (struct encode_context *ctx, struct svalue *val)
}
json_encode_recur (ctx, ITEM (a));
for (i = 1; i < size; i++) {
fast_check_threads_etc(8);
string_builder_putchar (buf, ',');
if (ctx->indent >= 0) {
int indent = ctx->indent;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment