Remove version (tracegc) blocks (#20881)

This commit is contained in:
Dennis 2025-02-17 00:15:00 +01:00 committed by GitHub
parent 24f80a0c42
commit 0bb48e277c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 27 deletions

View file

@ -53,18 +53,6 @@ version (D_ProfileGC)
string name = } ~ "`" ~ Type ~ "`;" ~ q{
// FIXME: use rt.tracegc.accumulator when it is accessable in the future.
version (tracegc)
} ~ "{\n" ~ q{
import core.stdc.stdio : printf;
printf("%sTrace file = '%.*s' line = %d function = '%.*s' type = %.*s\n",
} ~ "\"" ~ Hook ~ "\".ptr," ~ q{
file.length, file.ptr,
line,
funcname.length, funcname.ptr,
name.length, name.ptr
);
} ~ "}\n" ~ q{
ulong currentlyAllocated = gcStatsPure().allocatedInCurrentThread;
scope(exit)

View file

@ -15,8 +15,6 @@
module rt.tracegc;
// version = tracegc;
extern (C) void _d_callfinalizer(void* p);
extern (C) void _d_callinterfacefinalizer(void *p);
extern (C) void _d_delclass(Object* p);
@ -69,19 +67,6 @@ enum accumulator = q{
else
string name = "";
version (tracegc)
{
import core.stdc.stdio : printf;
printf("%s file = '%.*s' line = %d function = '%.*s' type = %.*s\n",
__FUNCTION__.ptr,
file.length, file.ptr,
line,
funcname.length, funcname.ptr,
name.length, name.ptr
);
}
ulong currentlyAllocated = GC.allocatedInCurrentThread;
scope(exit)