Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 339d991

Browse files
Merge pull request #6099 from adityamandaleeka/remove_virtual_owned
Remove VIRTUALOwnedRegion
2 parents efcd68c + 52d7750 commit 339d991

File tree

2 files changed

+1
-30
lines changed

2 files changed

+1
-30
lines changed

src/pal/src/include/pal/virtual.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,6 @@ Function :
9292
--*/
9393
void VIRTUALCleanup( void );
9494

95-
/*++
96-
Function :
97-
VIRTUALOwnedRegion
98-
99-
Returns whether the space in question is owned the VIRTUAL system.
100-
101-
--*/
102-
BOOL VIRTUALOwnedRegion( IN UINT_PTR address );
103-
104-
10595
#ifdef __cplusplus
10696
}
10797

src/pal/src/map/virtual.cpp

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -496,25 +496,6 @@ static PCMI VIRTUALFindRegionInformation( IN UINT_PTR address )
496496
return pEntry;
497497
}
498498

499-
/*++
500-
Function :
501-
VIRTUALOwnedRegion
502-
503-
Returns whether the space in question is owned the VIRTUAL system.
504-
505-
--*/
506-
BOOL VIRTUALOwnedRegion( IN UINT_PTR address )
507-
{
508-
PCMI pEntry = NULL;
509-
CPalThread * pthrCurrent = InternalGetCurrentThread();
510-
511-
InternalEnterCriticalSection(pthrCurrent, &virtual_critsec);
512-
pEntry = VIRTUALFindRegionInformation( address );
513-
InternalLeaveCriticalSection(pthrCurrent, &virtual_critsec);
514-
515-
return pEntry != NULL;
516-
}
517-
518499
/*++
519500
Function :
520501
@@ -612,6 +593,7 @@ static BYTE VIRTUALConvertWinFlags( IN DWORD flProtect )
612593
}
613594
return MemAccessControl;
614595
}
596+
615597
/****
616598
* VIRTUALConvertVirtualFlags() -
617599
* Converts internal virtual protection
@@ -654,7 +636,6 @@ static DWORD VIRTUALConvertVirtualFlags( IN BYTE VirtualProtect )
654636
return MemAccessControl;
655637
}
656638

657-
658639
/***
659640
* Displays the linked list.
660641
*

0 commit comments

Comments
 (0)