Files
filament/libs/utils/include/utils
Mathias Agopian ef703bb4be Better handle collisions and use-after-free detection
- each handle now has a 4-bits "age", meaning that handles are recycled
  only after 16 alloc/free cycles.
  This is used to detect double-free and use-after free.
  This should also allow us to compare handles, because freeing and
  reallocating an object, won't produce the same Handle (at least
  for 16 rounds).

- removed "type safety" checks because it's almost impossible to
  get it wrong thanks to our compile time type safety checks. This
  didn't provide a useful value added.

- This feature is built on top of being able to set/get a 8 bits tag
  associated with the memory block returned by the pool allocator. We
  use the "extra" parameter of the allocator to allocate a "hidden"
  structure containing the age of that memory block.

- Also we don't allow to compare Handle<> of different types
2024-02-09 12:07:42 -08:00
..
2022-08-24 11:41:10 -07:00
2023-01-26 16:07:58 -08:00
2022-05-11 10:22:04 -07:00
2021-10-07 20:58:34 -07:00
2022-10-27 22:48:45 -07:00
2022-03-01 10:03:31 -08:00
2021-02-17 10:11:22 -08:00