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

Store shared_ptr for Attribute in ArraySchema #2887

Merged
merged 6 commits into from Feb 28, 2022

Conversation

bekadavis9
Copy link
Contributor

@bekadavis9 bekadavis9 commented Feb 16, 2022

This is the first step in smart pointer conversion for memory management. The ArraySchema's Attribute pointer has been changed to a tdb_shared_ptr. [ch14362]


TYPE: IMPROVEMENT
DESC: ArraySchema's Attribute smart pointer conversion

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #14362: Store shared_ptr for Attribute in ArraySchema.

@bekadavis9 bekadavis9 force-pushed the rd/array_schema_attribute_shared_ptr branch from 118abe2 to ecd048b Compare February 16, 2022 15:48
@bekadavis9 bekadavis9 force-pushed the rd/array_schema_attribute_shared_ptr branch from 16e7dd7 to 1cff864 Compare February 16, 2022 20:32
@bekadavis9 bekadavis9 force-pushed the rd/array_schema_attribute_shared_ptr branch from 1cff864 to 5d3e022 Compare February 16, 2022 22:26
tiledb/sm/array_schema/array_schema.cc Outdated Show resolved Hide resolved
tiledb/sm/array_schema/array_schema.cc Outdated Show resolved Hide resolved
tiledb/sm/array_schema/array_schema.cc Outdated Show resolved Hide resolved
tiledb/sm/array_schema/array_schema.cc Outdated Show resolved Hide resolved
tiledb/sm/array_schema/array_schema.cc Outdated Show resolved Hide resolved
tiledb/sm/query/dense_reader.cc Outdated Show resolved Hide resolved
tiledb/sm/query/dense_reader.cc Outdated Show resolved Hide resolved
tiledb/sm/array_schema/array_schema.h Outdated Show resolved Hide resolved
tiledb/sm/array_schema/array_schema.h Outdated Show resolved Hide resolved
tiledb/sm/query/result_tile.cc Outdated Show resolved Hide resolved
Copy link
Contributor

@eric-hughes-tiledb eric-hughes-tiledb left a comment

Choose a reason for hiding this comment

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

One memory leak remains. Smaller issues are a bit of excess code and redundant temporaries.

Close to ready, but not there yet.

tiledb/sm/array_schema/array_schema.cc Outdated Show resolved Hide resolved
tiledb/sm/array_schema/array_schema.cc Outdated Show resolved Hide resolved
tiledb/sm/array_schema/array_schema.cc Outdated Show resolved Hide resolved
tiledb/sm/array_schema/array_schema.cc Outdated Show resolved Hide resolved
tiledb/sm/array_schema/array_schema.cc Outdated Show resolved Hide resolved
Copy link
Contributor

@eric-hughes-tiledb eric-hughes-tiledb left a comment

Choose a reason for hiding this comment

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

Almost there.

tiledb/sm/array_schema/array_schema.cc Outdated Show resolved Hide resolved
tiledb/sm/array_schema/array_schema.cc Outdated Show resolved Hide resolved
Copy link
Contributor

@eric-hughes-tiledb eric-hughes-tiledb left a comment

Choose a reason for hiding this comment

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

LGTM

@Shelnutt2 Shelnutt2 merged commit cc4977c into dev Feb 28, 2022
@Shelnutt2 Shelnutt2 deleted the rd/array_schema_attribute_shared_ptr branch February 28, 2022 02:05
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.

None yet

3 participants