-
Notifications
You must be signed in to change notification settings - Fork 549
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use monotonic time if possible to guard against clock skew * Relax time comparisons to make test failures under load less likely * Fix memory corruption segfaults on macOS due to mixing Threads and Timeout Without the timeout thread safety fix, the specs always crash in the "threaded queries should be supported" spec for various reasons on macOS 10.14.4 with ruby 2.6.1 / MySQL 8.0.15. Some observed errors: malloc: *** error for object 0x7fcbba90ef80: pointer being freed was not allocated malloc: *** set a breakpoint in malloc_error_break to debug lib/mysql2/client.rb:131:in `_query': Bad file descriptor (Errno::EBADF) Now specs run fine, even during Prime95 load test on i9-8950HK (6c/12t).
- Loading branch information
1 parent
d7c91ff
commit c8c346d
Showing
2 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters