go-json icon indicating copy to clipboard operation
go-json copied to clipboard

Reset runtime context options before releasing it back into pool

Open lovromazgon opened this issue 1 year ago • 11 comments

This PR makes sure RuntimeContext options are reset before the context is returned to the pool.

It also adds a test case that fails without the change.

Fixes #499.

lovromazgon avatar Feb 28 '24 16:02 lovromazgon

@goccy any chance you could look at the issue and PR? To me, it seems like a pretty straightforward fix.

lovromazgon avatar Mar 12 '24 16:03 lovromazgon

Sorry for the late reply, Please re-commit to run CI 🙏

goccy avatar May 09 '24 10:05 goccy

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 78.53%. Comparing base (df897ae) to head (abd07bc). Report is 4 commits behind head on master.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #500      +/-   ##
==========================================
+ Coverage   76.78%   78.53%   +1.74%     
==========================================
  Files          55       55              
  Lines       18922    16714    -2208     
==========================================
- Hits        14529    13126    -1403     
+ Misses       3759     2956     -803     
+ Partials      634      632       -2     

codecov-commenter avatar May 12 '24 09:05 codecov-commenter

@goccy I see you released 0.10.3, is there anything missing here that prevented you from including this PR?

lovromazgon avatar May 21 '24 13:05 lovromazgon

I saw this PR, but I cannot accept this implementation.

goccy avatar May 21 '24 14:05 goccy

Can you elaborate? Do you have suggestions on other approaches to address this bug?

EDIT: I assume you're concerned about the allocation. How about the approach with setting the context to nil before releasing it?

lovromazgon avatar May 21 '24 14:05 lovromazgon

Any chance you had a look at the last commit @goccy? Or at least describe your concerns so I know how to address them.

lovromazgon avatar Jun 13 '24 12:06 lovromazgon

@goccy can you please respond? I am willing to do the work and fix the bug, but I can't do it without your cooperation.

lovromazgon avatar Jun 24 '24 11:06 lovromazgon

A friendly reminder that I'm waiting for a response.

lovromazgon avatar Jul 24 '24 10:07 lovromazgon

Bump.

lovromazgon avatar Sep 04 '24 09:09 lovromazgon