Skip to content

Commit bf0f4fe

Browse files
committed
Clean up class dependencies in HeapBlock and HeapBlockMap.
1 parent d8ff8c3 commit bf0f4fe

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Lib/Common/Memory/HeapBlock.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -402,11 +402,6 @@ class SmallHeapBlockT : public HeapBlock
402402
template <typename TBlockType>
403403
friend class SmallNormalHeapBucketBase;
404404

405-
#ifdef JD_PRIVATE
406-
friend class HeapBlockHelper;
407-
friend class EXT_CLASS;
408-
#endif
409-
410405
public:
411406
static const ushort InvalidAddressBit = 0xFFFF;
412407

Lib/Common/Memory/HeapBlockMap.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
#pragma once
66
#include "CommonDefines.h"
77

8+
#ifdef JD_PRIVATE
9+
class HeapBlockHelper;
10+
#endif
11+
812
namespace Memory
913
{
1014
class HeapBlockMap32
@@ -88,7 +92,6 @@ class HeapBlockMap32
8892
friend class PageSegmentBase<VirtualAllocWrapper>;
8993

9094
#ifdef JD_PRIVATE
91-
friend class EXT_CLASS;
9295
friend class HeapBlockHelper;
9396
#endif
9497

0 commit comments

Comments
 (0)