aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/hipe/hipe_bif_list.m4
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-10-19 20:44:54 +0200
committerSverker Eriksson <[email protected]>2017-11-03 16:04:18 +0100
commit31e6c79f956f71e80d8f6be48e5ab8df87f2b85c (patch)
tree778c617c34071627d72d4c73a3af81cb6df40293 /erts/emulator/hipe/hipe_bif_list.m4
parent919ef5de2858e606d4a9be3e0e995b0802c76e33 (diff)
downloadotp-31e6c79f956f71e80d8f6be48e5ab8df87f2b85c.tar.gz
otp-31e6c79f956f71e80d8f6be48e5ab8df87f2b85c.tar.bz2
otp-31e6c79f956f71e80d8f6be48e5ab8df87f2b85c.zip
Prevent hipe_bs_validate_unicode from doing GC
Fix for x86_64 only. The calling native code can not handle a GC as it has a raw pointer where to write the binary data. If a GC happens the data (utf32) will be written to the old deallocated heap.
Diffstat (limited to 'erts/emulator/hipe/hipe_bif_list.m4')
-rw-r--r--erts/emulator/hipe/hipe_bif_list.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/hipe/hipe_bif_list.m4 b/erts/emulator/hipe/hipe_bif_list.m4
index f034c4700c..ada3ab2c83 100644
--- a/erts/emulator/hipe/hipe_bif_list.m4
+++ b/erts/emulator/hipe/hipe_bif_list.m4
@@ -247,7 +247,11 @@ nofail_primop_interface_3(nbif_bs_get_float_2, erts_bs_get_float_2)
standard_bif_interface_3(nbif_bs_put_utf8, hipe_bs_put_utf8)
standard_bif_interface_3(nbif_bs_put_utf16be, hipe_bs_put_utf16be)
standard_bif_interface_3(nbif_bs_put_utf16le, hipe_bs_put_utf16le)
+ifdef(`nogc_bif_interface_1',`
+nogc_bif_interface_1(nbif_bs_validate_unicode, hipe_bs_validate_unicode)
+',`
standard_bif_interface_1(nbif_bs_validate_unicode, hipe_bs_validate_unicode)
+')
/*
* Bit-syntax primops without any P parameter.