Surely that must be a specific allocator. Does rust allow you to use say jemalloc or alternatives? Or are you saying this lock is acquired no matter which allocator is used?
Bug report: [1]
[1]: https://doc.rust-lang.org/std/alloc/index.html#the-global_al...