[OpenJDK 2D-Dev]  JDK-8176287 :[macosx] The print test crashed with Nimbus L&F
prasanta.sadhukhan at oracle.com
Mon Mar 13 06:49:38 UTC 2017
Please review a jck print test crash fix for jdk9. The issue was seen
with only Nimbus L&F which seems to use Linear gradient path
and not in other L&F (such as Aqua) .
Linear Gradient path collects the gradient colors and fractions values
in native obtained from Java and allocates several arrays to store the
same in setupGradient() method.
It seems even after being freed, in subsequent call to the same gradient
path routine, it may get the same allocated pointer the next time the
array is allocated causing it to crash citing "memory being modified
Optimise setupGradient() method to allocate fewer pointer. The JCK test
Also, the JDK-8162796 testcase LinearGradientPrintingTest and
RadialGradientPrintingTest works with this optimisation.
More information about the 2d-dev