Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Conversation

@sergiud
Copy link
Contributor

@sergiud sergiud commented Aug 8, 2017

This is an alternative to PR #217 which does not allocate dynamic memory.

@sergiud sergiud force-pushed the zero-allocation-log-failure branch from 40e4070 to 2fe6508 Compare October 10, 2017 22:45
@sergiud
Copy link
Contributor Author

sergiud commented Oct 10, 2017

@shinh The PR is ready to be merged!

@shinh
Copy link
Contributor

shinh commented Oct 11, 2017

Looks great, thanks! I'm fairly sure LOG(INFO) is still allocation free, but have you somehow checked this didn't increase memory allocation?

@shinh shinh merged commit d053142 into google:master Oct 11, 2017
@sergiud
Copy link
Contributor Author

sergiud commented Oct 12, 2017

I have no numbers. However, @hansres has been running the patch for an extended period of time and maybe he can comment on that.

Nevertheless, since there's just one static array per thread, the memory consumpution should not bet higher than without TLS.

durswd pushed a commit to durswd/glog that referenced this pull request Sep 2, 2019
@sergiud sergiud deleted the zero-allocation-log-failure branch February 12, 2022 13:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants