RFR: 8328880: Events::log_exception should limit the size of the logging message

David Holmes dholmes at openjdk.org
Fri Aug 23 02:38:12 UTC 2024


On Fri, 23 Aug 2024 02:33:27 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

>> This simple enhancement allows for `Exceptions::_throw` to limit the message length printed by `Events::log_exception` in the same way that unified logging is limited. We simply allow a `message_length_limit` variable to be passed down - default value zero which means no limit (i.e. the full `strlen` of the message will be printed).
>> 
>> Testing:
>> - tiers 1-3
>> 
>> Thanks
>
> Marked as reviewed by kvn (Reviewer).

Thanks for the review @vnkozlov !

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

PR Comment: https://git.openjdk.org/jdk/pull/20638#issuecomment-2306074143


More information about the hotspot-dev mailing list