Revert "Add type confusion protection to the default memory provider."

This reverts commit d56201e28d.
This commit is contained in:
David Chisnall
2019-09-12 17:16:48 +01:00
parent dbea595b6e
commit 0b2b4d68a2
6 changed files with 14 additions and 29 deletions

View File

@@ -405,8 +405,5 @@ namespace snmalloc
* The memory provider that will be used if no other provider is explicitly
* passed as an argument.
*/
inline GlobalVirtual& default_memory_provider()
{
return TypedSingleton<GlobalVirtual>::global;
}
inline GlobalVirtual default_memory_provider;
} // namespace snmalloc