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

Only use nrn_prop_datum_alloc. #2683

Merged
merged 1 commit into from
Jan 27, 2024
Merged

Only use nrn_prop_datum_alloc. #2683

merged 1 commit into from
Jan 27, 2024

Conversation

1uc
Copy link
Collaborator

@1uc 1uc commented Jan 23, 2024

The aim of this refactoring is to make nrn_prop_datum_alloc the only function that allocates datums (for Prop; I'm not 100% sure about Datums in general).

I've attached a diagram of what I think is currently how prop.dparam is allocated and freed. There's still one alternative path remaining, via the global variable nrn_point_prop_. However, I suspect this will naturally go away when we store the datums inside the SoA.

datum-lifecycle

@1uc
Copy link
Collaborator Author

1uc commented Jan 23, 2024

I'm unable to find the associated free through grepping.

@1uc 1uc marked this pull request as draft January 23, 2024 13:17
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

✔️ e701266 -> Azure artifacts URL

Copy link

codecov bot commented Jan 23, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (45cdea7) 66.18% compared to head (e701266) 66.32%.
Report is 7 commits behind head on master.

Files Patch % Lines
src/nrniv/hocmech.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2683      +/-   ##
==========================================
+ Coverage   66.18%   66.32%   +0.13%     
==========================================
  Files         559      559              
  Lines      108940   108657     -283     
==========================================
- Hits        72107    72064      -43     
+ Misses      36833    36593     -240     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

NEURON ModelDB CI: launching for e701266 via its drop url

Copy link
Contributor

NEURON ModelDB CI: e701266 -> download reports from here

@1uc 1uc marked this pull request as ready for review January 24, 2024 08:21
Copy link
Member

@nrnhines nrnhines left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@pramodk pramodk merged commit 638c30c into master Jan 27, 2024
40 checks passed
@pramodk pramodk deleted the 1uc/alloc_pnt branch January 27, 2024 08:24
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.

4 participants