pleriche / FastMM5

FastMM is a fast replacement memory manager for Embarcadero Delphi applications that scales well across multiple threads and CPU cores, is not prone to memory fragmentation, and supports shared memory without the use of external .DLL files.
283 stars 73 forks source link

What should I use instead of defines related to thread management #15

Closed obones closed 3 years ago

obones commented 3 years ago

In my evaluation of moving from FastMM4 to FastMM5, I have to replace a few group of options that I created in FastMM4Options.inc by calls to the appropriate methods. While most of them were easy, I'm struggling a bit with those ones:

{$define AssumeMultiThreaded}
{$define NeverSleepOnThreadContention}
{$define UseSwitchToThread}

Looking at the code, it seems they are simply now integrated by default and that there is nothing to activate when they are present, or deactivate should they be undefined. Am I right?

pleriche commented 3 years ago

Hi Olivier,

You are correct: Those options are obsolete. The are all effectively always on in v5.

Best regards, Pierre

obones commented 3 years ago

Thanks for the confirmation, this is fine by me.