See also the [original pull request](https://github.com/openjdk/jdk/pull/9362) 
where the change is explained and discussed in details.

Compared to the original version of this fix I
* changed the error reporting from `printStackTrace()` to 
`System.out.println()` as per @prrace request,
* fixed the test to use `AtomicInteger` for the counter of disposer records as 
`+=` and `--` operations on a `volatile int` do not guarantee value's 
integrity, which caused the test to often fail.

`test/jdk/sun/java2d/Disposer/TestDisposerRace.java` now passes successfully on 
MacOS and Linux.

-------------

Commit messages:
 - 8292304: [REDO] JDK-8289208 Test DrawRotatedStringUsingRotatedFont.java 
occasionally crashes on MacOS

Changes: https://git.openjdk.org/jdk/pull/9890/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9890&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8292304
  Stats: 141 lines in 3 files changed: 122 ins; 5 del; 14 mod
  Patch: https://git.openjdk.org/jdk/pull/9890.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9890/head:pull/9890

PR: https://git.openjdk.org/jdk/pull/9890

Reply via email to