RFR: 8273414: ResourceObj::operator delete should handle nullptr in debug builds
Leo Korinth
lkorinth at openjdk.java.net
Tue Sep 7 09:48:48 UTC 2021
This is how delete usually works, This is also how FreeHeap and CHeapObj::operator delete works. Delete does handle nullptr in release builds, it is the assert that may crash. Also, as a user it is nice to call delete without first checking the argument for nullptr.
-------------
Commit messages:
- 8273414: ResourceObj::operator delete should handle nullptr in debug builds
Changes: https://git.openjdk.java.net/jdk/pull/5385/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5385&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8273414
Stats: 3 lines in 1 file changed: 3 ins; 0 del; 0 mod
Patch: https://git.openjdk.java.net/jdk/pull/5385.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/5385/head:pull/5385
PR: https://git.openjdk.java.net/jdk/pull/5385
More information about the hotspot-runtime-dev
mailing list