After failing of pthread_key_create, we use perror for error-information 
output, but perror evaluates errno.
However, pthread_key_create seems not to set errno but returns an error code, 
so we should better print the real error code.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - JDK-8392627

Changes: https://git.openjdk.org/jdk/pull/32999/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32999&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8392627
  Stats: 4 lines in 1 file changed: 1 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/32999.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/32999/head:pull/32999

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

Reply via email to