Skip to content

Commit 2714b92

Browse files
authored
Profile.Allocs: jl_raw_alloc_t.task is untyped pointer (#44269)
1 parent 2816a6f commit 2714b92

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/gc-alloc-profiler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct jl_raw_alloc_t {
2020
jl_datatype_t *type_address;
2121
jl_raw_backtrace_t backtrace;
2222
size_t size;
23-
jl_task_t *task;
23+
void *task;
2424
uint64_t timestamp;
2525
};
2626

@@ -135,7 +135,7 @@ void _maybe_record_alloc_to_profile(jl_value_t *val, size_t size, jl_datatype_t
135135
type,
136136
get_raw_backtrace(),
137137
size,
138-
jl_current_task,
138+
(void *)jl_current_task,
139139
cycleclock()
140140
});
141141
}

stdlib/Profile/src/Allocs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ struct Alloc
123123
type::Any
124124
stacktrace::StackTrace
125125
size::Int
126-
task::Ptr{Cvoid}
126+
task::Ptr{Cvoid} # N.B. unrooted, may not be valid
127127
timestamp::UInt64
128128
end
129129

0 commit comments

Comments
 (0)