Commit Graph

469 Commits

Author SHA1 Message Date
Anton Korobeynikov 765fc9c0ca Unify statistic collection:
- For MI_STAT == 0 no allocation stats are collected
  - For MI_STAT == 1 only aggregated values (across normal, large and huge heaps) are collected
  - For MI_STAT == 1 separate per-bin collection for normal heap is done as well
2020-11-11 11:41:39 +03:00
Anton Korobeynikov 00fb89f771 Rename the field 2020-11-11 11:41:33 +03:00
Anton Korobeynikov 39bcf8a6b0 Honour MI_STAT in couple more places. 2020-11-02 00:14:02 +03:00
Anton Korobeynikov 9c45221243 Do not use the same counter for warnings and errors.
Warnings happen normally and could be safely ignored in the most cases,
however errors, if enabled, should not be ignored. Currently since warnings
and errors share the same counter we effectively stop showing errors after
16 warnings (which happen all the time).

Use different counters for errors and warnings.
2020-11-01 23:57:42 +03:00
David Carlier e6c2fd44fc DragonFly support fix (for 5.8.x and forward).
The pthread slot approach is somewhat buggy (pretty visible
 with the stress unit test which segfault more or less randomly,
 but the stats never show up).
Using the default approach instead, the test passes eventough
 it s relatively slow (e.g 1.5 sec on FreeBSD vs 4.5 on DragonFly with same
 machine).
2020-10-22 11:15:37 +01:00
Vasya B cb45e3c6b1 fix for x32 builds 2020-10-19 21:00:16 +00:00
daan 13a4030619 bump version to 1.6.7 2020-09-24 16:30:40 -07:00
daan 9d5098c705 bump version to 1.6.7 for further development 2020-09-24 10:16:40 -07:00
daan 6adb919085 bump version to 1.6.6 2020-09-24 10:14:10 -07:00
daan f88b4b4c27 extend mi_process_info to include elapsed time 2020-09-24 10:13:25 -07:00
daan d0d3634143 bump version for further development 2020-09-24 09:29:37 -07:00
daan c05302f097 Merge branch 'dev' into dev-exp 2020-09-24 09:11:49 -07:00
daan 64a3d24dcd bump version to 1.6.5 2020-09-23 20:00:23 -07:00
daan 8607ff617c add environment option mi_reserve_os_memory 2020-09-08 17:16:31 -07:00
daan 364674185e add option to limit OS allocation and only allow allocation from arenas 2020-09-08 16:56:51 -07:00
daan 14b8d27386 track pinned memory separately from large os pages 2020-09-08 16:46:03 -07:00
daan c86459afef split bitmap code into separate header and source file 2020-09-08 10:14:13 -07:00
daan 30b993ecf3 consolidate bit scan operations 2020-09-08 09:27:57 -07:00
daan c7272afa9a add mi_reserve_os_memory/mi_manage_os_memory; allow arena allocations to cross multiple bitmap fields 2020-09-07 21:34:34 -07:00
daan 46ee8952eb update mi_process_info to not use doubles 2020-09-06 13:53:02 -07:00
daan ee286919d9 add mi_process_info api call 2020-09-06 13:21:19 -07:00
daan 4355ab7d20 add i64 atomics 2020-09-06 13:21:02 -07:00
daan 83bd352f37 roll back previous commit (use standard C++ atomics on msvc 2020-09-05 11:29:38 -07:00
daan 102a85937e experiment with using non-c++ atomics on msvc 2020-09-05 11:27:06 -07:00
daan 2e311f341b fix msvc compilation in C mode 2020-09-05 09:37:09 -07:00