RFR: 8256256: UL should not use heap allocation for output string [v2]
Yumin Qi
minqi at openjdk.java.net
Wed Nov 18 04:32:18 UTC 2020
> Hi, Please review
> Unified Logging uses 512 bytes buffer on stack for printing out message, above that will allocate heap for extra space needed. This may potentially may cause a circulation when we log the heap allocation and the log message is over 512. The max logging buffer size now is increased to 4096 and above that, output will be truncated.
>
> Tests: tier1,tier4
Yumin Qi has updated the pull request incrementally with one additional commit since the last revision:
Use malloc/free for large log message buffer
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/1246/files
- new: https://git.openjdk.java.net/jdk/pull/1246/files/1819b8e2..46b58626
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=1246&range=01
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=1246&range=00-01
Stats: 34 lines in 3 files changed: 20 ins; 6 del; 8 mod
Patch: https://git.openjdk.java.net/jdk/pull/1246.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/1246/head:pull/1246
PR: https://git.openjdk.java.net/jdk/pull/1246
More information about the hotspot-runtime-dev
mailing list