anchor.diff:  
       Dec(NewCount, LastCount);
       GlobalStorage := Pointer(NativeInt(@GLOBAL_STORAGE[63]) and MASK_64_CLEAR);
  -    AtomicIncrement(NativeInt(GlobalStorage.PagesAllocated), NativeInt(NewCount));
  +    AtomicIncrement(GlobalStorage.PagesAllocated, NewCount);
   
       Result := Pages;
     end else
  
positive.code:   end;
  
    {$ifNdef BRAINMM_UNITTEST}
    GlobalStorage := Pointer(NativeInt(@GLOBAL_STORAGE[63]) and MASK_64_CLEAR);
    if (GlobalStorage.K64BlockCache.Count < 16) then
    begin
      AtomicIncrement(NativeInt(GlobalStorage.K64BlockCache.Count));
      GlobalStorage.K64BlockCache.Stack.Push(Block);
      Result := True;
    end else
    {$endif}
    begin
      {$ifdef MSWINDOWS}
  
negative.code:   if (Result <> nil) then
    begin
      GlobalStorage := Pointer(NativeInt(@GLOBAL_STORAGE[63]) and MASK_64_CLEAR);
      AtomicIncrement(GlobalStorage.PagesAllocated, SIZE_K64 div SIZE_K4);
  
      if (PagesMode = PAGESMODE_JIT) then
        ChangeMemoryAccessRights(Result, 64 div 4, [marRead, marWrite, marExecute]);
  