In the review of [JDK-8392568](https://bugs.openjdk.org/browse/JDK-8392568) we 
following was suggested :
'I suggest to delete both macros, which add little value as it stands, even for 
the used one, and replace it with directly calling malloc and doing error 
handling all without the macro.'

See
https://github.com/openjdk/jdk/blob/5f622fc327feeb329355f47b9e862c4bc4a01efc/src/java.desktop/share/native/libawt/java2d/loops/ProcessPath.c#L1734

So I replaced the 2 macros and added NULL - checks.

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

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

Commit messages:
 - JDK-8397507

Changes: https://git.openjdk.org/jdk/pull/33943/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33943&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8397507
  Stats: 19 lines in 1 file changed: 6 ins; 11 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/33943.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/33943/head:pull/33943

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

Reply via email to