RFR: JDK-8313632: ciEnv::dump_replay_data use fclose
Matthias Baesken
mbaesken at openjdk.org
Thu Aug 3 08:50:41 UTC 2023
Seems we miss to call fclose at the end of ciEnv::dump_replay_data .
This should better be done like it is documented here in the fdopen example :
https://www.ibm.com/docs/en/i/7.3?topic=functions-fdopen-associates-stream-file-descriptor
I also added close calls in case fdopen fails, should we use them too?
-------------
Commit messages:
- JDK-8313632
Changes: https://git.openjdk.org/jdk/pull/15135/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15135&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8313632
Stats: 4 lines in 1 file changed: 4 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/15135.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/15135/head:pull/15135
PR: https://git.openjdk.org/jdk/pull/15135
More information about the hotspot-compiler-dev
mailing list