# HG changeset patch # User Paul Boddie # Date 1548455959 -3600 # Node ID 9fd4ceb913982dbb7e7e08c002cf3f9085b86d14 # Parent caeae102e9dce4eb5389747179de994655a4af55 Use "atomic" allocation for float values to reduce garbage collector overhead. diff -r caeae102e9dc -r 9fd4ceb91398 templates/native/common.c --- a/templates/native/common.c Fri Jan 25 23:24:33 2019 +0100 +++ b/templates/native/common.c Fri Jan 25 23:39:19 2019 +0100 @@ -47,7 +47,7 @@ __attr __new_float(double n) { /* Create a new float and set the trailing data. */ - __attr attr = __NEWINSTANCE(__builtins___float_float); + __attr attr = __NEWINSTANCEIM(__builtins___float_float); __set_trailing_data(attr, __builtins___float_float, n); return attr; }