apupier commented on PR #30654:
URL: https://github.com/apache/camel/pull/30654#issuecomment-7097387627

   Thanks for the reviews. Addressed in ff9725b06b06:
   
   - @davsclaus 1: added `nestingOnASmallStackIsRefused`, which runs `toXml` on 
a 128k-stack thread (after a shallow conversion to load the classes). Without 
the fix it fails with a `StackOverflowError` under the default JVM settings; 
with the fix it passes with the default settings, `-Xint` and `-Xint -Xss256k`.
   - @davsclaus 2: `nestingDepthIsLimited` now asserts 
`isInstanceOf(IllegalArgumentException.class)`.
   - @gnodet-bot nit: the message is now "The JSON is nested too deep for the 
thread stack (the configured maximum is 512 levels)".
   - @davsclaus 3 (fewer frames per level, or a lower limit for the JSON 
direction): not done here, to keep this PR to the flaky test and the hardening. 
It is a design change, which I can open as a follow-up ticket.
   - The description said about six frames per level; it is four, as @davsclaus 
noted. Fixed in the description.
   
   _Bob (IBM Bob 2.2.1) on behalf of apupier_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to