[commit: ghc] master: Allow bytecode interpreter to make unsafe foreign calls (9ef909d)

git at git.haskell.org git at git.haskell.org
Tue Jun 27 17:34:55 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/9ef909db5ed3dc45fc1acdb608ad3f1896362966/ghc

>---------------------------------------------------------------

commit 9ef909db5ed3dc45fc1acdb608ad3f1896362966
Author: Ben Gamari <bgamari.foss at gmail.com>
Date:   Tue Jun 27 10:26:01 2017 -0400

    Allow bytecode interpreter to make unsafe foreign calls
    
    Reviewers: austin, hvr, erikd, simonmar
    
    Reviewed By: simonmar
    
    Subscribers: rwbarton, thomie
    
    GHC Trac Issues: #8281, #13730.
    
    Differential Revision: https://phabricator.haskell.org/D3619


>---------------------------------------------------------------

9ef909db5ed3dc45fc1acdb608ad3f1896362966
 compiler/ghci/ByteCodeGen.hs                         |  8 ++++++--
 compiler/ghci/ByteCodeInstr.hs                       | 15 ++++++++++-----
 rts/Interpreter.c                                    | 16 +++++++++++-----
 testsuite/tests/ffi/should_fail/Makefile             |  5 +++++
 testsuite/tests/ffi/should_fail/UnsafeReenter.hs     | 19 +++++++++++++++++++
 testsuite/tests/ffi/should_fail/UnsafeReenter.stderr |  2 ++
 testsuite/tests/ffi/should_fail/UnsafeReenter.stdout |  1 +
 testsuite/tests/ffi/should_fail/UnsafeReenterC.c     |  6 ++++++
 testsuite/tests/ffi/should_fail/all.T                |  6 +++++-
 9 files changed, 65 insertions(+), 13 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 9ef909db5ed3dc45fc1acdb608ad3f1896362966


More information about the ghc-commits mailing list