mirror of
https://github.com/dlang/phobos.git
synced 2025-04-30 15:10:46 +03:00
phobos 0.165
This commit is contained in:
parent
c57830cc09
commit
dbc7ec7b92
2 changed files with 8 additions and 1 deletions
|
@ -40,6 +40,7 @@ import gcstats;
|
||||||
version (Win32)
|
version (Win32)
|
||||||
{
|
{
|
||||||
import win32;
|
import win32;
|
||||||
|
import std.c.windows.windows;
|
||||||
}
|
}
|
||||||
|
|
||||||
version (linux)
|
version (linux)
|
||||||
|
@ -259,7 +260,7 @@ class GC
|
||||||
p = gcx.bucket[bin];
|
p = gcx.bucket[bin];
|
||||||
if (p == null)
|
if (p == null)
|
||||||
{
|
{
|
||||||
if (!gcx.allocPage(bin)) // try to find a new page
|
if (!gcx.allocPage(bin) && !gcx.disabled) // try to find a new page
|
||||||
{
|
{
|
||||||
if (std.thread.Thread.nthreads == 1)
|
if (std.thread.Thread.nthreads == 1)
|
||||||
{
|
{
|
||||||
|
@ -1143,6 +1144,10 @@ struct Gcx
|
||||||
switch (state)
|
switch (state)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
if (disabled)
|
||||||
|
{ state = 1;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// Try collecting
|
// Try collecting
|
||||||
freedpages = fullcollectshell();
|
freedpages = fullcollectshell();
|
||||||
if (freedpages >= npools * ((POOLSIZE / PAGESIZE) / 4))
|
if (freedpages >= npools * ((POOLSIZE / PAGESIZE) / 4))
|
||||||
|
@ -1370,6 +1375,7 @@ struct Gcx
|
||||||
|
|
||||||
uint fullcollectshell()
|
uint fullcollectshell()
|
||||||
{
|
{
|
||||||
|
|
||||||
// The purpose of the 'shell' is to ensure all the registers
|
// The purpose of the 'shell' is to ensure all the registers
|
||||||
// get put on the stack so they'll be scanned
|
// get put on the stack so they'll be scanned
|
||||||
void *sp;
|
void *sp;
|
||||||
|
|
1
std.ddoc
1
std.ddoc
|
@ -111,6 +111,7 @@ NAVIGATION_PHOBOS=
|
||||||
<h2><a href="phobos.html#std" title="D standard modules">std</a></h2>
|
<h2><a href="phobos.html#std" title="D standard modules">std</a></h2>
|
||||||
$(UL
|
$(UL
|
||||||
$(LI <a href="std_base64.html" title="Encode/decode base64 format">std.base64</a>)
|
$(LI <a href="std_base64.html" title="Encode/decode base64 format">std.base64</a>)
|
||||||
|
$(LI <a href="std_bitarray.html" title="Arrays of bits">std.bitarray</a>)
|
||||||
$(LI <a href="std_boxer.html" title="Box/unbox types">std.boxer</a>)
|
$(LI <a href="std_boxer.html" title="Box/unbox types">std.boxer</a>)
|
||||||
$(LI <a href="std_compiler.html" title="Information about the D compiler implementation">std.compiler</a>)
|
$(LI <a href="std_compiler.html" title="Information about the D compiler implementation">std.compiler</a>)
|
||||||
$(LI <a href="std_conv.html" title="Conversion of strings to integers">std.conv</a>)
|
$(LI <a href="std_conv.html" title="Conversion of strings to integers">std.conv</a>)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue