Skip to content

Increased the size of the error message buffer by 4x, to 511 bytes.#15728

Merged
zhangskz merged 1 commit into26.xfrom
cp-32a6f7a
Feb 5, 2024
Merged

Increased the size of the error message buffer by 4x, to 511 bytes.#15728
zhangskz merged 1 commit into26.xfrom
cp-32a6f7a

Conversation

@zhangskz
Copy link
Copy Markdown
Member

@zhangskz zhangskz commented Feb 5, 2024

The previous limit of 127 was causing error messages to get truncated when long identifiers are in use.

This will increase the stack usage of any code that is allocating a upb_Status on the stack. If we want to support smaller stacks in the future, we could change upb_Status to store its capacity inline, so different users can allocate error buffers with different capacity.

Fixes: #14376
PiperOrigin-RevId: 603136385

The previous limit of 127 was causing error messages to get truncated when long identifiers are in use.

This will increase the stack usage of any code that is allocating a `upb_Status` on the stack. If we want to support smaller stacks in the future, we could change `upb_Status` to store its capacity inline, so different users can allocate error buffers with different capacity.

Fixes: #14376
PiperOrigin-RevId: 603136385
@zhangskz zhangskz requested a review from a team as a code owner February 5, 2024 19:19
@zhangskz zhangskz requested review from JasonLunn and haberman and removed request for a team and JasonLunn February 5, 2024 19:19
@JasonLunn JasonLunn added ruby jruby Issues unique to the JRuby interpreter labels Feb 5, 2024
@zhangskz zhangskz merged commit ab6bcba into 26.x Feb 5, 2024
@zhangskz zhangskz deleted the cp-32a6f7a branch February 5, 2024 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jruby Issues unique to the JRuby interpreter ruby

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants