Skip to content

fix: DisableMemDump should toggle memOpts.Enable, not gCHeapOpts.Enable - #158

Open
youchan-yc wants to merge 1 commit into
mosn:masterfrom
youchan-yc:fix/disable-memdump-bug
Open

youchan-yc wants to merge 1 commit into
mosn:masterfrom
youchan-yc:fix/disable-memdump-bug

Conversation

@youchan-yc

Copy link
Copy Markdown

DisableMemDump was a copy-paste of DisableGCHeapDump and flipped gCHeapOpts.Enable instead of memOpts.Enable, so callers could never turn the mem dump off via DisableMemDump (memOpts.Enable stayed true after EnableMemDump).

Add a regression test covering EnableMemDump/DisableMemDump on memOpts.

DisableMemDump was a copy-paste of DisableGCHeapDump and flipped gCHeapOpts.Enable instead of memOpts.Enable, so callers could never turn the mem dump off via DisableMemDump (memOpts.Enable stayed true after EnableMemDump).

Add a regression test covering EnableMemDump/DisableMemDump on memOpts.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant