2019-01-25 | Paul Boddie | raw files shortlog changelog graph | Use "atomic" allocation for float values to reduce garbage collector overhead. | trailing-data |
templates/native/common.c (file) |
1.1 --- a/templates/native/common.c Fri Jan 25 23:24:33 2019 +0100 1.2 +++ b/templates/native/common.c Fri Jan 25 23:39:19 2019 +0100 1.3 @@ -47,7 +47,7 @@ 1.4 __attr __new_float(double n) 1.5 { 1.6 /* Create a new float and set the trailing data. */ 1.7 - __attr attr = __NEWINSTANCE(__builtins___float_float); 1.8 + __attr attr = __NEWINSTANCEIM(__builtins___float_float); 1.9 __set_trailing_data(attr, __builtins___float_float, n); 1.10 return attr; 1.11 }