HomePhabricator

[ORC] Re-apply 98f2bb44610, enable JITEventListeners in OrcV2, with fixes.

Authored by lhames on Mar 19 2020, 4:14 PM.

Description

[ORC] Re-apply 98f2bb44610, enable JITEventListeners in OrcV2, with fixes.

Updates the object buffer ownership scheme in jitLinkForOrc and related
functions: Ownership of both the object::ObjectFile and underlying
MemoryBuffer is passed into jitLinkForOrc and passed back to the onEmit
callback once linking is complete. This avoids the use-after-free errors
that were seen in 98f2bb44610.

Details

Committed
lhamesMar 19 2020, 4:30 PM
Parents
rGd6fc61b7e8b0: [profile] Record the profile size as a property of the VMO
Branches
Unknown
Tags
Unknown