[GHC] #12059: Add primop to query for pinned-ness of a ByteArray
#12059: Add primop to query for pinned-ness of a ByteArray -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: feature | Status: new request | Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- It would be useful to have, {{{#!hs isPinnedByteArray# :: MutableByteArray# -> Int# }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12059> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#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: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => patch * differential: => Phab:D2217 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12059#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#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: | -------------------------------------+------------------------------------- Description changed by bgamari: @@ -5,0 +5,3 @@ + + This, for instance, allows one to construct a `ByteString` from a + `ByteArray` in an opportunistically zero-copy manner. New description: It would be useful to have, {{{#!hs isPinnedByteArray# :: MutableByteArray# -> Int# }}} This, for instance, allows one to construct a `ByteString` from a `ByteArray` in an opportunistically zero-copy manner. -- -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12059#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#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
#12059: Add primop to query for pinned-ness of a ByteArray -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: feature request | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | codeGen/should_run/T12059 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2217 Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * status: patch => closed * testcase: => codeGen/should_run/T12059 * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12059#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#12059: Add primop to query for pinned-ness of a ByteArray -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: feature request | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | codeGen/should_run/T12059 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D2217 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"4dbacbc89a999bf371d51194b4662a209ac907f1/ghc" 4dbacbc/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="4dbacbc89a999bf371d51194b4662a209ac907f1" Rename isPinnedByteArray# to isByteArrayPinned# Reviewers: simonmar, duncan, erikd, austin Reviewed By: austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D2290 GHC Trac Issues: #12059 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12059#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC