diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2016-05-17 19:05:26 +0200 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-05-18 22:02:22 +0200 |
commit | 310371ff2d5b73cdcb2439b67170ca5e613541c0 (patch) | |
tree | c447b75f3ea056381cc3282fa81704907cd616c9 /includes | |
parent | 39a2faa05fbbdb4a5ef0682afc42b5809cbd86ce (diff) | |
download | haskell-310371ff2d5b73cdcb2439b67170ca5e613541c0.tar.gz |
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
Diffstat (limited to 'includes')
-rw-r--r-- | includes/stg/MiscClosures.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/stg/MiscClosures.h b/includes/stg/MiscClosures.h index 3fd412820b..337f586f76 100644 --- a/includes/stg/MiscClosures.h +++ b/includes/stg/MiscClosures.h @@ -347,6 +347,7 @@ RTS_FUN_DECL(stg_casArrayzh); RTS_FUN_DECL(stg_newByteArrayzh); RTS_FUN_DECL(stg_newPinnedByteArrayzh); RTS_FUN_DECL(stg_newAlignedPinnedByteArrayzh); +RTS_FUN_DECL(stg_isPinnedByteArrayzh); RTS_FUN_DECL(stg_shrinkMutableByteArrayzh); RTS_FUN_DECL(stg_resizzeMutableByteArrayzh); RTS_FUN_DECL(stg_casIntArrayzh); |