#12059: Add primop to query for pinned-ness of a ByteArray -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: feature request | Status: patch Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2217 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"310371ff2d5b73cdcb2439b67170ca5e613541c0/ghc" 310371f/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="310371ff2d5b73cdcb2439b67170ca5e613541c0" rts: Add isPinnedByteArray# primop Adds a primitive operation to determine whether a particular `MutableByteArray#` is backed by a pinned buffer. Test Plan: Validate with included testcase Reviewers: austin, simonmar Reviewed By: austin, simonmar Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2217 GHC Trac Issues: #12059 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12059#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler