You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 36d4828
Browse filesBrowse the repository at this point in the historyBrowse files
Merge the fixes for CI on Linux, the sanitizers and Haxe nightly
The Linux link of programs that use sys.ssl, a socket handle in stock
hxcpp's layout as CrossByte makes one, the map walk counter that mark
threads raced on, the moved-object address stored misaligned, two fuzz
finds in the cppia loader and Date, and the runtime at API level 500.
The TSan suppressions and the Alpine runner cover the debug regressions,
and Run.hx shows a failing test's stderr, for the failures CI does not
explain yet.
* Fixed programs that use sys.ssl without sockets failing to link on Linux with an undefined reference to hxcpp_alloc_kind: hxcpp_std, linked a second time after hxcpp_ssl, came after the runtime's second copy. Libraries linked twice are now added again last group first, so the runtime's copy follows the libraries that call into it
6
+
* Fixed closing, reading or polling a socket handle that a library made in stock hxcpp's layout, as CrossByte's accept does, reading past the handle: the runtime took its own wrapper's later fields from it, and a close wrote through what followed it in memory. Only the descriptor is read from such a handle, and the runtime's wrapper no longer shares its name, and with it its vtable, with a library's
7
+
* Fixed a map that two marking threads marked at once being left unable to fold its buckets: the marker counted itself as a walk over the map without a lock, so the count could stay above zero. Marking no longer counts as a walk, as folding only happens after it (follow-up to libhxcpp #204)
8
+
* Fixed the moving collector storing a moved object's new address as a pointer at an address only 4-byte aligned, which is undefined and which UBSan reported once string data stopped being 8-byte aligned. The address is copied in and out
9
+
* Fixed a malformed cppia file whose function body was some other expression being run as a function. It fails to load with "Function body is not a function" (libhxcpp #257)
10
+
* Fixed the fields and text of a Date whose time is not a number, or past what a year in a tm holds, converting the time to whole seconds, which is undefined. Such a time gives the fields of the epoch (libhxcpp #257)
11
+
* Fixed the runtime not compiling at API level 500, which Haxe nightly builds use: a cppia module's release function defined only the __run that level 500 removed, and VirtualArray's closures compared arrays with a != that C++20 finds ambiguous
5
12
* Fixed converting a weak map to another value type losing live keys, about one in five in a map whose keys had mostly died: a collection during the conversion folded the map's buckets (#204), moving entries into buckets the conversion had already passed. A collection now leaves the fold to a later one while anything walks the map, which keys(), values(), toString and conversion do (libhxcpp #204)
6
13
* Fixed the moving collector (HXCPP_GC_MOVING) giving the whole heap back on Gc.run(true) and whenever the allocator's free list filled, as the other modes stopped doing in #230 and #231: a heap with a small live set stayed near 9 MB and collected far more often, and Gc.run(true) shrank it to 1 MB. Only Gc.compact() releases everything now; the collector still moves objects on those collections (libhxcpp #231)
7
14
* Sped up converting a Float to a String, which rounded it with printf to 15, 16 and 17 digits and read each back with strtod to find the shortest digits that read back. Grisu3 finds them with integer arithmetic, and the old search does the doubles it cannot decide, about 0.5% in Loitsch's measurements. The text is the same for every value: Std.string on Floats went from 996k to 8.8M conversions a second (libhxcpp #390)
0 commit comments