Skip to content

Commit

Permalink
Profile.Allocs: jl_raw_alloc_t.task is untyped pointer (#44269)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2714b92)
  • Loading branch information
jpsamaroo authored and KristofferC committed Feb 23, 2022
1 parent bb6221c commit 69407ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/gc-alloc-profiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct jl_raw_alloc_t {
jl_datatype_t *type_address;
jl_raw_backtrace_t backtrace;
size_t size;
jl_task_t *task;
void *task;
uint64_t timestamp;
};

Expand Down Expand Up @@ -135,7 +135,7 @@ void _maybe_record_alloc_to_profile(jl_value_t *val, size_t size, jl_datatype_t
type,
get_raw_backtrace(),
size,
jl_current_task,
(void *)jl_current_task,
cycleclock()
});
}
Expand Down
2 changes: 1 addition & 1 deletion stdlib/Profile/src/Allocs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ struct Alloc
type::Any
stacktrace::StackTrace
size::Int
task::Ptr{Cvoid}
task::Ptr{Cvoid} # N.B. unrooted, may not be valid
timestamp::UInt64
end

Expand Down

0 comments on commit 69407ed

Please sign in to comment.