Skip to content

Bug #80646: ut_delay missing compile barrier (backport to 5.6) #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Bug #80646: ut_delay missing compile barrier (backport to 5.6) #55

wants to merge 2 commits into from

Conversation

grooverdan
Copy link

This backports the bug 74832 patches by Marko and Yasufumi (c92102a and 5e3efb0) from 5.7 to 5.6

Yasufumi Kinoshita and others added 2 commits March 4, 2016 13:34
Bug#18842925 : SET THREAD PRIORITY IN INNODB MUTEX SPINLOOP
Like "pause" instruction for hyper-threading at Intel CPUs,
POWER has special instructions only for hinting priority of hardware-threads.

Bug#18814859 : "CACHE_LINE_SIZE IN INNODB SHOULD BE 128 ON POWER")
Data arrangement is be better to be conscious about data-cache unit size of CPU, for more CPU cache consistency.
Currently it is fixed to 64 bytes in InnoDB, but 128 bytes is better for POWER.

Approved by Sunny in rb#6256

Backport of the 5.7 fix - c92102a
UT_RELAX_CPU(): Use a compiler barrier.

ut_delay(): Remove the dummy global variable ut_always_false.

RB: 11399
Reviewed-by: Jimmy Yang <jimmy.yang@oracle.com>

Backported from MySQL-5.7 - patch 5e3efb0
@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Please confirm this code is submitted under the terms of the OCA (Oracle's Contribution Agreement) you have previously signed by cutting and pasting the following text as a comment:
"I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it."
Thanks

@grooverdan
Copy link
Author

I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Your code has been assigned to an internal queue. Please follow
bug http://bugs.mysql.com/bug.php?id=80646 for updates.
Thanks

@grooverdan grooverdan changed the title ut_delay missing compile barrier (backport to 5.6) Bug #80646: ut_delay missing compile barrier (backport to 5.6) Mar 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants