Skip to content

Update protobuf to the latest version#7396

Merged
snnn merged 3 commits intomasterfrom
snnn/update_protobuf
Apr 21, 2021
Merged

Update protobuf to the latest version#7396
snnn merged 3 commits intomasterfrom
snnn/update_protobuf

Conversation

@snnn
Copy link
Copy Markdown
Contributor

@snnn snnn commented Apr 21, 2021

Description:

Update protobuf to the latest version. The new one has an important change that it uses init_seg in MSVC to push initialization to an earlier phase. This will help ensure protobuf is fully initialized before onnxruntime's global variables get constructed.

Motivation and Context

  • Why is this change required? What problem does it solve?

If without this change, onnxruntime either has memory leak, or crashes.

  • If it fixes an open issue, please link to the issue here.

@snnn snnn requested a review from a team as a code owner April 21, 2021 15:24
@snnn snnn merged commit b4cfa88 into master Apr 21, 2021
@snnn snnn deleted the snnn/update_protobuf branch April 21, 2021 17:30
BowenBao pushed a commit that referenced this pull request Apr 21, 2021
@snnn
Copy link
Copy Markdown
Contributor Author

snnn commented Apr 21, 2021

Binary size didn't increase.

Before: commit id 243713c , size 6482320
After: commit id b4cfa88, size 6481808

ytaous pushed a commit that referenced this pull request Apr 23, 2021
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