Skip to content

Conversation

daxtens
Copy link

@daxtens daxtens commented Feb 17, 2016

On powerpc64le with 64k pages, attempting to set stack size to 64k fails,
so the thr_lock test fails immediately.

Instead, check the current stack size, and if it's bigger, leave it unchanged.
The test program now succeeds.

Signed-off-by: Daniel Axtens daxtens@au1.ibm.com

@daxtens
Copy link
Author

daxtens commented Feb 17, 2016

Yep, PTHREAD_STACK_MIN is 131072. I will respin to test if PTHREAD_STACK_MIN < 65536 and only adjust if that's the case.

@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

On powerpc64le with 64k pages, attempting to set stack size to 64k fails,
so the thr_lock test fails immediately.

Instead, only set the stack when 64k is greater than the minimum stack.
The test program now succeeds.

Signed-off-by: Daniel Axtens <daxtens@au1.ibm.com>
@daxtens
Copy link
Author

daxtens commented Feb 17, 2016

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

@daxtens
Copy link
Author

daxtens commented Feb 17, 2016

Updated per @stewart-ibm's comments.

@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=80419 for updates.
Thanks

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