rts: Add isPinnedByteArray# primop
authorBen Gamari <bgamari.foss@gmail.com>
Tue, 17 May 2016 17:05:26 +0000 (19:05 +0200)
committerBen Gamari <ben@smart-cactus.org>
Wed, 18 May 2016 20:02:22 +0000 (22:02 +0200)
commit310371ff2d5b73cdcb2439b67170ca5e613541c0
treec447b75f3ea056381cc3282fa81704907cd616c9
parent39a2faa05fbbdb4a5ef0682afc42b5809cbd86ce
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
compiler/prelude/primops.txt.pp
docs/users_guide/8.2.1-notes.rst
includes/stg/MiscClosures.h
libraries/ghc-prim/changelog.md
rts/PrimOps.cmm
rts/RtsSymbols.c
testsuite/tests/codeGen/should_run/T12059.hs [new file with mode: 0644]
testsuite/tests/codeGen/should_run/T12059.stdout [new file with mode: 0644]
testsuite/tests/codeGen/should_run/all.T
utils/deriveConstants/Main.hs