Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion autoload/youcompleteme.vim
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,7 @@ function! s:AbortAutohoverRequest() abort
let request = requests[ request_id ]
if request.origin == 'autohover'
call remove( s:pollers.command.requests, request_id )
py3 ycm_state.FlushCommandRequest( int( vim.eval( "request_id" ) ) )
call request.callback( '' )
endif
endfor
Expand Down Expand Up @@ -1551,7 +1552,7 @@ function! s:PollCommands( timer_id ) abort

" This request is done
call remove( s:pollers.command.requests, request_id )
py3 ycm_state.FlushCommandRequest( vim.eval( "request_id" ) )
py3 ycm_state.FlushCommandRequest( int( vim.eval( "request_id" ) ) )
call request[ 'callback' ]( result )
endfor

Expand Down
4 changes: 4 additions & 0 deletions python/ycm/unsafe_thread_pool_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ def _worker( executor_reference, work_queue ):
work_item = work_queue.get( block=True )
if work_item is not None:
work_item.run()
# Delete references to object,
# whis allow remove object by GC without stuck on work_queue.get()
# on next cycle iteration. See GH-60488
del work_item
continue
executor = executor_reference()
# Exit if:
Expand Down