Commit 058c385e authored by Marko Mäkelä's avatar Marko Mäkelä

Merge 10.1 into 10.2

parents 3bcda8ad 1f498f90
...@@ -1214,8 +1214,8 @@ ...@@ -1214,8 +1214,8 @@
COMMAND_LINE_ARGUMENT OPTIONAL COMMAND_LINE_ARGUMENT OPTIONAL
VARIABLE_NAME INNODB_VERSION VARIABLE_NAME INNODB_VERSION
SESSION_VALUE NULL SESSION_VALUE NULL
-GLOBAL_VALUE 5.6.44 -GLOBAL_VALUE 5.6.45
+GLOBAL_VALUE 5.6.43-84.3 +GLOBAL_VALUE 5.6.44-86.0
GLOBAL_VALUE_ORIGIN COMPILE-TIME GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE NULL DEFAULT_VALUE NULL
VARIABLE_SCOPE GLOBAL VARIABLE_SCOPE GLOBAL
......
...@@ -684,8 +684,8 @@ ...@@ -684,8 +684,8 @@
COMMAND_LINE_ARGUMENT OPTIONAL COMMAND_LINE_ARGUMENT OPTIONAL
VARIABLE_NAME INNODB_VERSION VARIABLE_NAME INNODB_VERSION
SESSION_VALUE NULL SESSION_VALUE NULL
-GLOBAL_VALUE 5.6.44 -GLOBAL_VALUE 5.6.45
+GLOBAL_VALUE 5.6.43-84.3 +GLOBAL_VALUE 5.6.44-86.0
GLOBAL_VALUE_ORIGIN COMPILE-TIME GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE NULL DEFAULT_VALUE NULL
VARIABLE_SCOPE GLOBAL VARIABLE_SCOPE GLOBAL
......
...@@ -716,23 +716,6 @@ ut_crc32_init() ...@@ -716,23 +716,6 @@ ut_crc32_init()
ut_cpuid(vend, &model, &family, &stepping, ut_cpuid(vend, &model, &family, &stepping,
&features_ecx, &features_edx); &features_ecx, &features_edx);
/* Valgrind does not understand the CRC32 instructions:
vex amd64->IR: unhandled instruction bytes: 0xF2 0x48 0xF 0x38 0xF0 0xA
valgrind: Unrecognised instruction at address 0xad3db5.
Your program just tried to execute an instruction that Valgrind
did not recognise. There are two possible reasons for this.
1. Your program has a bug and erroneously jumped to a non-code
location. If you are running Memcheck and you just saw a
warning about a bad jump, it's probably your program's fault.
2. The instruction is legitimate but Valgrind doesn't handle it,
i.e. it's Valgrind's fault. If you think this is the case or
you are not sure, please let us know and we'll try to fix it.
Either way, Valgrind will now raise a SIGILL signal which will
probably kill your program.
*/
if (features_ecx & 1 << 20) { if (features_ecx & 1 << 20) {
ut_crc32 = ut_crc32_hw; ut_crc32 = ut_crc32_hw;
#ifdef INNODB_BUG_ENDIAN_CRC32 #ifdef INNODB_BUG_ENDIAN_CRC32
......
/***************************************************************************** /*****************************************************************************
Copyright (c) 1994, 2017, Oracle and/or its affiliates. All Rights Reserved. Copyright (c) 1994, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, MariaDB Corporation. Copyright (c) 2017, 2019, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software the terms of the GNU General Public License as published by the Free Software
...@@ -154,12 +154,7 @@ ut_time_us( ...@@ -154,12 +154,7 @@ ut_time_us(
/*=======*/ /*=======*/
uintmax_t* tloc) /*!< out: us since epoch, if non-NULL */ uintmax_t* tloc) /*!< out: us since epoch, if non-NULL */
{ {
struct timeval tv; uintmax_t us = my_interval_timer() / 1000;
uintmax_t us;
ut_gettimeofday(&tv, NULL);
us = static_cast<uintmax_t>(tv.tv_sec) * 1000000 + tv.tv_usec;
if (tloc != NULL) { if (tloc != NULL) {
*tloc = us; *tloc = us;
...@@ -177,11 +172,7 @@ ulint ...@@ -177,11 +172,7 @@ ulint
ut_time_ms(void) ut_time_ms(void)
/*============*/ /*============*/
{ {
struct timeval tv; return static_cast<ulint>(my_interval_timer() / 1000000);
ut_gettimeofday(&tv, NULL);
return((ulint) tv.tv_sec * 1000 + tv.tv_usec / 1000);
} }
/**********************************************************//** /**********************************************************//**
......
...@@ -45,10 +45,10 @@ Created 1/20/1994 Heikki Tuuri ...@@ -45,10 +45,10 @@ Created 1/20/1994 Heikki Tuuri
#define INNODB_VERSION_MAJOR 5 #define INNODB_VERSION_MAJOR 5
#define INNODB_VERSION_MINOR 6 #define INNODB_VERSION_MINOR 6
#define INNODB_VERSION_BUGFIX 43 #define INNODB_VERSION_BUGFIX 44
#ifndef PERCONA_INNODB_VERSION #ifndef PERCONA_INNODB_VERSION
#define PERCONA_INNODB_VERSION 84.3 #define PERCONA_INNODB_VERSION 86.0
#endif #endif
/* Enable UNIV_LOG_ARCHIVE in XtraDB */ /* Enable UNIV_LOG_ARCHIVE in XtraDB */
......
...@@ -314,22 +314,6 @@ ut_crc32_init() ...@@ -314,22 +314,6 @@ ut_crc32_init()
ut_cpuid(vend, &model, &family, &stepping, ut_cpuid(vend, &model, &family, &stepping,
&features_ecx, &features_edx); &features_ecx, &features_edx);
/* Valgrind does not understand the CRC32 instructions:
vex amd64->IR: unhandled instruction bytes: 0xF2 0x48 0xF 0x38 0xF0 0xA
valgrind: Unrecognised instruction at address 0xad3db5.
Your program just tried to execute an instruction that Valgrind
did not recognise. There are two possible reasons for this.
1. Your program has a bug and erroneously jumped to a non-code
location. If you are running Memcheck and you just saw a
warning about a bad jump, it's probably your program's fault.
2. The instruction is legitimate but Valgrind doesn't handle it,
i.e. it's Valgrind's fault. If you think this is the case or
you are not sure, please let us know and we'll try to fix it.
Either way, Valgrind will now raise a SIGILL signal which will
probably kill your program.
*/
if ((features_ecx >> 20) & 1) { if ((features_ecx >> 20) & 1) {
ut_crc32 = ut_crc32_sse42; ut_crc32 = ut_crc32_sse42;
ut_crc32_implementation = "Using SSE2 crc32 instructions"; ut_crc32_implementation = "Using SSE2 crc32 instructions";
......
/***************************************************************************** /*****************************************************************************
Copyright (c) 1994, 2017, Oracle and/or its affiliates. All Rights Reserved. Copyright (c) 1994, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2019, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software the terms of the GNU General Public License as published by the Free Software
...@@ -189,12 +190,7 @@ ut_time_us( ...@@ -189,12 +190,7 @@ ut_time_us(
/*=======*/ /*=======*/
ullint* tloc) /*!< out: us since epoch, if non-NULL */ ullint* tloc) /*!< out: us since epoch, if non-NULL */
{ {
struct timeval tv; ullint us = my_interval_timer() / 1000;
ullint us;
ut_gettimeofday(&tv, NULL);
us = (ullint) tv.tv_sec * 1000000 + tv.tv_usec;
if (tloc != NULL) { if (tloc != NULL) {
*tloc = us; *tloc = us;
...@@ -213,11 +209,7 @@ ulint ...@@ -213,11 +209,7 @@ ulint
ut_time_ms(void) ut_time_ms(void)
/*============*/ /*============*/
{ {
struct timeval tv; return static_cast<ulint>(my_interval_timer() / 1000000);
ut_gettimeofday(&tv, NULL);
return((ulint) tv.tv_sec * 1000 + tv.tv_usec / 1000);
} }
#endif /* !UNIV_HOTBACKUP */ #endif /* !UNIV_HOTBACKUP */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment