Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash when using PROFILE_BDWGC #1338

Merged
merged 2 commits into from
May 7, 2024
Merged

Conversation

ksh8281
Copy link
Contributor

@ksh8281 ksh8281 commented Apr 30, 2024

No description provided.

Comment on lines 143 to 144
#if !defined(PROFILE_BDWGC)
ASSERT(inited && !!g_gcEventListenerSet);
#endif
return *g_gcEventListenerSet;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you optionally (not PROFILE_BDWGC) enable this assertion?
When using PROFILE_BDWGC, what if g_gcEventListenerSet is not yet initialized (nullptr) but about to access this g_gcEventListenerSet?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated my pr.
this could be better

Signed-off-by: Seonghyun Kim <[email protected]>
Copy link
Contributor

@clover2123 clover2123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@clover2123 clover2123 merged commit a34205a into Samsung:master May 7, 2024
27 checks passed
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.

2 participants