Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions changelog/gc_precise.dd
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
A garbage collector with precise heap scanning can now be selected

Precise heap scanning can now be enabled by a DRT option to the
$(LINK2 $(ROOT_DIR)spec/garbage.html, GC configuration),
e.g. by passing `--DRT-gcopt=gc:precise` on the command
line or by redefining `rt_options`. See the
$(LINK2 $(ROOT_DIR)spec/garbage.html#precise_gc, documentation)
for details.
4 changes: 2 additions & 2 deletions src/gc/config.d
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct Config
{
bool disable; // start disabled
ubyte profile; // enable profiling with summary when terminating program
string gc = "conservative"; // select gc implementation conservative|manual
string gc = "conservative"; // select gc implementation conservative|precise|manual

size_t initReserve; // initial reserve (MB)
size_t minPoolSize = 1; // initial and minimum pool size (MB)
Expand All @@ -37,7 +37,7 @@ struct Config
string s = "GC options are specified as whitespace separated assignments:
disable:0|1 - start disabled (%d)
profile:0|1|2 - enable profiling with summary when terminating program (%d)
gc:conservative|manual - select gc implementation (default = conservative)
gc:conservative|precise|manual - select gc implementation (default = conservative)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a reminder to update the spec too (or at least open up a PR, s.t. it doesn't get lost once this PR has been merged): https://github.com/dlang/dlang.org/blob/master/spec/garbage.dd#L386

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


initReserve:N - initial memory to reserve in MB (%lld)
minPoolSize:N - initial and minimum pool size in MB (%lld)
Expand Down
Loading