RFR(xs): 8187028: [aix] Real thread stack size may be up to 64K smaller than requested one
thomas.stuefe at gmail.com
Thu Aug 31 17:02:54 UTC 2017
Thank you Volker.
On Thu, Aug 31, 2017 at 3:34 PM, Volker Simonis <volker.simonis at gmail.com>
> Hi Thomas,
> it would be of course interesting to know the real reason for this
> behavior. Maybe that could be used to predict the variation and fix
> it more accurately.
> But for the time being, your fix is acceptable so you can consider it
> Thanks for fixing this,
> On Thu, Aug 31, 2017 at 12:08 PM, Thomas Stüfe <thomas.stuefe at gmail.com>
> > Hi all,
> > please review this change:
> > Bug:
> > https://bugs.openjdk.java.net/browse/JDK-8187028
> > change:
> > http://cr.openjdk.java.net/~stuefe/webrevs/8187028-aix-
> > The issue is that on AIX, pthread library seems to have a bug where it
> > sometimes gives us less thread stack space than we requested (a variable
> > amount, but seems to be 0..64K). This may cause intermittent stack
> > errors if the stacks are very small to begin with.
> > The workaround is to add 64K to the requested stack size to account for
> > fact that the OS may give us up to 64K less stack.
> > Also, improved logging.
> > Thanks, Thomas
More information about the hotspot-dev