@@ -8,17 +8,20 @@ class NativeCodePageHelper
8
8
{
9
9
/// <summary>
10
10
/// Initialized by InitializeNativeCodePage.
11
- ///
11
+ /// <para>
12
12
/// This points to a page of memory allocated using mmap or VirtualAlloc
13
13
/// (depending on the system), and marked read and execute (not write).
14
14
/// Very much on purpose, the page is *not* released on a shutdown and
15
15
/// is instead leaked. See the TestDomainReload test case.
16
- ///
16
+ /// </para>
17
+ /// <para>
17
18
/// The contents of the page are two native functions: one that returns 0,
18
19
/// one that returns 1.
19
- ///
20
+ /// </para>
21
+ /// <para>
20
22
/// If python didn't keep its gc list through a Py_Finalize we could remove
21
23
/// this entire section.
24
+ /// </para>
22
25
/// </summary>
23
26
internal static IntPtr NativeCodePage = IntPtr . Zero ;
24
27
@@ -95,10 +98,11 @@ public static NativeCode Active
95
98
} ;
96
99
97
100
/// <summary>
98
- /// Code for X86.
99
- ///
101
+ /// <para> Code for X86.</para>
102
+ /// <para>
100
103
/// It's bitwise identical to X86_64, so we just point to it.
101
104
/// <see cref="NativeCode.X86_64"/>
105
+ /// </para>
102
106
/// </summary>
103
107
public static readonly NativeCode I386 = X86_64 ;
104
108
}
@@ -145,7 +149,7 @@ public void SetReadExec(IntPtr mappedMemory, int numBytes)
145
149
}
146
150
}
147
151
148
- class UnixMemoryMapper : IMemoryMapper
152
+ class PosixMemoryMapper : IMemoryMapper
149
153
{
150
154
const int PROT_READ = 0x1 ;
151
155
const int PROT_WRITE = 0x2 ;
@@ -196,7 +200,7 @@ internal static IMemoryMapper CreateMemoryMapper()
196
200
else
197
201
{
198
202
// Linux, OSX, FreeBSD
199
- return new UnixMemoryMapper ( ) ;
203
+ return new PosixMemoryMapper ( ) ;
200
204
}
201
205
}
202
206
0 commit comments