Skip to content

CORE: Move away the allocation of the temporary no_cache method store - #15737

Closed
levitte wants to merge 3 commits into
openssl:masterfrom
levitte:refactor-no_cache-fetching
Closed

levitte wants to merge 3 commits into
openssl:masterfrom
levitte:refactor-no_cache-fetching

Conversation

@levitte

@levitte levitte commented Jun 14, 2021

Copy link
Copy Markdown
Member

The responsibility for managine the temporary store for methods from
algorithm implementations flaged "no_store" is moved up to the diverse
method fetching functions. This allows them to allocate it "just in
time", or in other words not at all if there is not such algorithm
implementation.

This makes this temporary store more flexible if it's needed outside
of the core fetching functionality, and slightly faster when this
temporary store isn't necessary at all.

@levitte levitte added branch: master Applies to master branch approval: review pending This pull request needs review by a committer labels Jun 14, 2021
@levitte

levitte commented Jun 14, 2021 •

Copy link
Copy Markdown
Member Author

This will help #15604... I thought it was worth a separate review, though

@github-actions github-actions Bot added the severity: fips change The pull request changes FIPS provider sources label Jun 14, 2021
Comment thread crypto/store/store_meth.c Resolved
@mattcaswell

Copy link
Copy Markdown
Member

Looks good - although I guess the CI failures are relevant.

@levitte

levitte commented Jun 14, 2021

Copy link
Copy Markdown
Member Author

although I guess the CI failures are relevant.

Yup, working on them

@levitte

levitte commented Jun 14, 2021

Copy link
Copy Markdown
Member Author

although I guess the CI failures are relevant.

It was an initialization missing, as far as I can tell. Fixed

@levitte

levitte commented Jun 14, 2021

Copy link
Copy Markdown
Member Author

CIs are happy here

@paulidale paulidale left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. At least I think it does.

@paulidale paulidale added approval: done This pull request has the required number of approvals and removed approval: review pending This pull request needs review by a committer labels Jun 14, 2021
@FdaSilvaYY

Copy link
Copy Markdown
Contributor

Typo inside commit message : managine

@mattcaswell mattcaswell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved assuming typo mentioned by @FdaSilvaYY is fixed.

levitte added 3 commits June 14, 2021 16:57
The responsibility for managing the temporary store for methods from
algorithm implementations flaged "no_store" is moved up to the diverse
method fetching functions.  This allows them to allocate it "just in
time", or in other words not at all if there is not such algorithm
implementation.

This makes this temporary store more flexible if it's needed outside
of the core fetching functionality, and slightly faster when this
temporary store isn't necessary at all.
@levitte
levitte force-pushed the refactor-no_cache-fetching branch from b14207f to c67add6 Compare June 14, 2021 14:57
@levitte

levitte commented Jun 14, 2021

Copy link
Copy Markdown
Member Author

Typo inside commit message : managine

Fixed

@openssl-machine

Copy link
Copy Markdown
Collaborator

24 hours has passed since 'approval: done' was set, but as this PR has been updated in that time the label 'approval: ready to merge' is not being automatically set. Please review the updates and set the label manually.

openssl-machine pushed a commit that referenced this pull request Jun 15, 2021
The responsibility for managing the temporary store for methods from
algorithm implementations flaged "no_store" is moved up to the diverse
method fetching functions.  This allows them to allocate it "just in
time", or in other words not at all if there is not such algorithm
implementation.

This makes this temporary store more flexible if it's needed outside
of the core fetching functionality, and slightly faster when this
temporary store isn't necessary at all.

Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from #15737)
@levitte

levitte commented Jun 15, 2021

Copy link
Copy Markdown
Member Author

Merged

9067cf6 CORE: Move away the allocation of the temporary no_cache method store

@levitte levitte closed this Jun 15, 2021
@levitte
levitte deleted the refactor-no_cache-fetching branch June 15, 2021 13:07
devnexen pushed a commit to devnexen/openssl that referenced this pull request Jul 7, 2021
The responsibility for managing the temporary store for methods from
algorithm implementations flaged "no_store" is moved up to the diverse
method fetching functions.  This allows them to allocate it "just in
time", or in other words not at all if there is not such algorithm
implementation.

This makes this temporary store more flexible if it's needed outside
of the core fetching functionality, and slightly faster when this
temporary store isn't necessary at all.

Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from openssl#15737)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approval: done This pull request has the required number of approvals branch: master Applies to master branch severity: fips change The pull request changes FIPS provider sources

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants