Skip to content

[Issue 1136] Fix for race condition in JBM allocate/free data unit

Fix for Issue 1136 - Potential race condition in JBM in Data Unit Alloc/Free

  • Introduce a mutex encapsulation supporting windows and posix systems
  • Raise error if non posix, non windows platforms
  • Use mutex to prevent race condition around update to the shared variables (h->freeMemorySlots and h->nFreeMemorySlots)
  • Fix should be available for all posix systems including unix, linux, android, macos, ios
  • For bare-metal/non posix/non windows compilers, currently error is thrown in build
  • It can be stubbed for custom implementation if needed

Kindly Review : @jiaquan.huo @doehla @jtorr @sbrow

Edited by Ripinder Singh

Merge request reports

Loading