Skip to content

Commit 1cd4a86

Browse files
committed
fixup! debug
1 parent 97a1dd1 commit 1cd4a86

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/process_messages.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,7 @@ function showerror(io::IO, re::RemoteException)
6666
showerror(io, re.captured)
6767
end
6868

69-
const thunk_counter = Threads.Atomic{Int}(0)
70-
7169
function run_work_thunk(thunk::Function, print_error::Bool)
72-
Threads.atomic_add!(thunk_counter, 1)
7370
local result
7471
try
7572
result = thunk()
@@ -78,7 +75,6 @@ function run_work_thunk(thunk::Function, print_error::Bool)
7875
result = RemoteException(ce)
7976
print_error && showerror(stderr, ce)
8077
end
81-
Threads.atomic_add!(thunk_counter, -1)
8278
return result
8379
end
8480
function run_work_thunk(rv::RemoteValue, thunk)
@@ -212,7 +208,7 @@ function message_handler_loop(r_stream::IO, w_stream::IO, incoming::Bool)
212208
end
213209
readbytes!(r_stream, boundary, length(MSG_BOUNDARY))
214210

215-
println("$(now()) (thunk counter: $(thunk_counter[])) got msg: ", typeof(msg))
211+
println("$(now()) got msg: ", typeof(msg))
216212
handle_msg(msg, header, r_stream, w_stream, version)
217213
end
218214
catch e

src/remotecall.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function finalize_ref(r::AbstractRemoteRef)
108108
unlock(client_refs.lock)
109109
end
110110
else
111-
finalizer(finalize_ref, r)
111+
# finalizer(finalize_ref, r)
112112
return nothing
113113
end
114114
end

0 commit comments

Comments
 (0)