diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-05-12 10:22:26 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-05-12 10:22:26 -0700 |
commit | cdf2822743b3beeb37ebc3deea8e08b6130698c5 (patch) | |
tree | b7946314d79e8df95eb16703b65832e20f7ee620 /073scheduler.cc | |
parent | bd222553d7bc7d91d3eebae5639b01f58c8f7c75 (diff) | |
download | mu-cdf2822743b3beeb37ebc3deea8e08b6130698c5.tar.gz |
4242 - get rid of refcounts entirely
We're going to lean back into the experiment of commit 4179 back in Jan. If we delete memory it's up to us to ensure no pointers into it survive. Since deep-copy depends on our refcounting infrastructure, it's gone as well. So we're going to have to start watching out for pointers shared over channels.
Diffstat (limited to '073scheduler.cc')
-rw-r--r-- | 073scheduler.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/073scheduler.cc b/073scheduler.cc index 75a17d33..d9f85131 100644 --- a/073scheduler.cc +++ b/073scheduler.cc @@ -178,10 +178,9 @@ case START_RUNNING: { new_routine->parent_index = Current_routine_index; // populate ingredients for (int i = /*skip callee*/1; i < SIZE(current_instruction().ingredients); ++i) { + new_routine->calls.front().ingredient_atoms.push_back(ingredients.at(i)); reagent/*copy*/ ingredient = current_instruction().ingredients.at(i); new_routine->calls.front().ingredients.push_back(ingredient); - vector<double> new_ingredient_atoms = deep_copy(ingredient); - new_routine->calls.front().ingredient_atoms.push_back(new_ingredient_atoms); // End Populate start-running Ingredient } Routines.push_back(new_routine); |