mirror of
https://review.haiku-os.org/buildtools
synced 2025-02-01 02:54:39 +01:00
92b3138b83
Updated dependencies: * GMP 6.2.1 * ISL 0.24 * MPL 1.2.1 * MPFR 4.1.0 The dependencies were pulled in by running the ./contrib/download_prerequisites script and then manually removing the symbolic links and archives, and renaming the directories (i.e mv isl-0.24 to isl)
27 lines
682 B
D
27 lines
682 B
D
/**
|
|
* This module tells the garbage collector about the static data and bss segments,
|
|
* so the GC can scan them for roots. It does not deal with thread local static data.
|
|
*
|
|
* Copyright: Copyright Digital Mars 2000 - 2012.
|
|
* License: Distributed under the
|
|
* $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0).
|
|
* (See accompanying file LICENSE)
|
|
* Authors: Walter Bright, Sean Kelly
|
|
* Source: $(DRUNTIMESRC rt/_memory.d)
|
|
*/
|
|
|
|
module rt.memory;
|
|
|
|
|
|
import core.memory;
|
|
import rt.sections;
|
|
|
|
void initStaticDataGC()
|
|
{
|
|
foreach (ref sg; SectionGroup)
|
|
{
|
|
foreach (rng; sg.gcRanges)
|
|
GC.addRange(rng.ptr, rng.length);
|
|
}
|
|
}
|