diff options
Diffstat (limited to 'erts/preloaded/src/erlang.erl')
-rw-r--r-- | erts/preloaded/src/erlang.erl | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/erts/preloaded/src/erlang.erl b/erts/preloaded/src/erlang.erl index c8c3b36c8d..d9ba8328dd 100644 --- a/erts/preloaded/src/erlang.erl +++ b/erts/preloaded/src/erlang.erl @@ -980,21 +980,17 @@ garbage_collect(Pid, OptionList) -> GcOpts = get_gc_opts(OptionList, #gcopt{}), case GcOpts#gcopt.async of {async, ReqId} -> - {priority, Prio} = erlang:process_info(erlang:self(), - priority), erts_internal:request_system_task( - Pid, Prio, {garbage_collect, ReqId, GcOpts#gcopt.type}), + Pid, inherit, {garbage_collect, ReqId, GcOpts#gcopt.type}), async; sync -> case Pid == erlang:self() of true -> erts_internal:garbage_collect(GcOpts#gcopt.type); false -> - {priority, Prio} = erlang:process_info(erlang:self(), - priority), ReqId = erlang:make_ref(), erts_internal:request_system_task( - Pid, Prio, + Pid, inherit, {garbage_collect, ReqId, GcOpts#gcopt.type}), receive {garbage_collect, ReqId, GCResult} -> |