[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

#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
participants (1)
-
GHC