Skip to content

BHP1-1673 Return the simulated point count from ContainSim::firePoints - #75

Open
rjsheperd wants to merge 1 commit into
masterfrom
rj-BHP1-1673-containsim-firepoints
Open

rjsheperd wants to merge 1 commit into
masterfrom
rj-BHP1-1673-containsim-firepoints

Conversation

@rjsheperd

Copy link
Copy Markdown
Contributor

Purpose

firePoints() returned m_size, the array allocation (m_maxSteps + 1), not
the number of points simulated. Everything past m_step is unwritten or stale
from an earlier pass. Now returns m_left->simulationStep() + 1, capped at
m_size, and 0 before a run.

This is to allow firelab/behave-app to avoid reading from
stale/garbage memory when it frees WASM objects.

Related Issues

BHP1-1673

This branch has not been deployed

No deployments
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.

1 participant