Remove all unnecessary Enter/ExitHandleScope()
s in FfiCalls
#48989
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
library-ffi
type-performance
Issue relates to performance or code size
All FfiCalls internally call
Enter-
andExitHandleScope()
for all calls that contain handles in the function signature.This behaviour will no longer be needed for Handle arguments as of 243320, but removing this behaviour is a breaking change since the native function might rely on there being a scope, to e.g. call Dart API, like
Dart_NewSendPort
.We need to investigate how we can best get rid of all unnecessary scopes.
This could for instance be:
@FfiNative<>(.., requiresScope:false)
.The text was updated successfully, but these errors were encountered: