aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/proc.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2016-12-08 16:37:54 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2016-12-08 16:37:54 +0000
commit453060a9062959ceb1522b8b99adeb01b2a3f7b7 (patch)
tree34a4ee9d0eb2d5e59c8a8ffc86e75b6e7b9a572c /libgo/runtime/proc.c
parentb2264b0964560e724010aac2faf4f6a3ec2729f7 (diff)
downloadgcc-453060a9062959ceb1522b8b99adeb01b2a3f7b7.zip
gcc-453060a9062959ceb1522b8b99adeb01b2a3f7b7.tar.gz
gcc-453060a9062959ceb1522b8b99adeb01b2a3f7b7.tar.bz2
runtime: copy memory hash code from Go 1.7
Rewrite the AES hashing code from gc assembler to C code using intrinsics. The resulting code generates the same hash code for the same input as the gc code--that doesn't matter as such, but testing it ensures that the C code does something useful. Also change mips64pe32le to mips64p32le in configure script--noticed during CL review. Reviewed-on: https://go-review.googlesource.com/34022 From-SVN: r243445
Diffstat (limited to 'libgo/runtime/proc.c')
-rw-r--r--libgo/runtime/proc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgo/runtime/proc.c b/libgo/runtime/proc.c
index dd5562b..be7e083 100644
--- a/libgo/runtime/proc.c
+++ b/libgo/runtime/proc.c
@@ -455,7 +455,8 @@ runtime_schedinit(void)
// runtime_symtabinit();
runtime_mallocinit();
mcommoninit(m);
-
+ runtime_alginit(); // maps must not be used before this call
+
// Initialize the itable value for newErrorCString,
// so that the next time it gets called, possibly
// in a fault during a garbage collection, it will not