Removed the additional multiplication overflow detection. Instead cast all the parameters to type_t just the way they are treated in the existing size check macro. This way there is no possibility to accidentally provide parameters that will pass the size check macro while being cast to size_t there but then due to the missing cast cause the wrong size passed the actual allocation function. Since this checking macro was used in couple of different places all of them needs to be updated in the similar way.
------------- Commit messages: - Removed the additional multiplication overflow detection. Changes: https://git.openjdk.org/jdk/pull/11030/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11030&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8296496 Stats: 10 lines in 1 file changed: 0 ins; 4 del; 6 mod Patch: https://git.openjdk.org/jdk/pull/11030.diff Fetch: git fetch https://git.openjdk.org/jdk pull/11030/head:pull/11030 PR: https://git.openjdk.org/jdk/pull/11030
