Skip to content

Commit 8ae2749

Browse files
authored
comment (#474)
Signed-off-by: turuslan <[email protected]>
1 parent 7ff3a2f commit 8ae2749

File tree

16 files changed

+28
-0
lines changed

16 files changed

+28
-0
lines changed

core/data_transfer/dt.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,11 @@ namespace fc::data_transfer {
9494
std::shared_ptr<Graphsync> gs;
9595
std::map<std::string, OnPush> on_push;
9696
std::map<std::string, OnPull> on_pull;
97+
// TODO(turuslan): FIL-420 check cache memory usage
9798
std::unordered_map<PeerDtId, OnData> pulling_out;
99+
// TODO(turuslan): FIL-420 check cache memory usage
98100
std::unordered_map<PeerDtId, OnData> pulling_in;
101+
// TODO(turuslan): FIL-420 check cache memory usage
99102
std::unordered_map<PeerDtId, PushingOut> pushing_out;
100103
DtId next_dtid;
101104
};

core/fsm/fsm.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ namespace fc::fsm {
469469

470470
/// a list of entities' current states
471471
mutable std::shared_mutex states_mutex_;
472+
// TODO(turuslan): FIL-420 check cache memory usage
472473
std::unordered_map<EntityPtr, StateEnumType> states_;
473474

474475
/// optional callback called after any transition

core/markets/storage/chain_events/impl/chain_events_impl.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ namespace fc::markets::storage::chain_events {
2727
using PrecommitCb = std::function<void(outcome::result<SectorNumber>)>;
2828

2929
struct Watch {
30+
// TODO(turuslan): FIL-420 check cache memory usage
3031
std::multimap<DealId, PrecommitCb> precommits;
32+
// TODO(turuslan): FIL-420 check cache memory usage
3133
std::multimap<SectorNumber, CommitCb> commits;
3234
};
3335

@@ -64,6 +66,7 @@ namespace fc::markets::storage::chain_events {
6466
TipsetCPtr head_;
6567

6668
mutable std::mutex watched_events_mutex_;
69+
// TODO(turuslan): FIL-420 check cache memory usage
6770
std::map<Address, Watch> watched_events_;
6871

6972
common::Logger logger_ = common::createLogger("StorageMarketEvents");

core/markets/storage/client/impl/storage_market_client_impl.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,12 @@ namespace fc::markets::storage::client {
289289

290290
std::mutex waiting_mutex;
291291
std::shared_ptr<void> waiting_sub;
292+
// TODO(turuslan): FIL-420 check cache memory usage
292293
std::vector<std::shared_ptr<ClientDeal>> waiting_deals;
293294

294295
// connection manager
295296
std::mutex connections_mutex_;
297+
// TODO(turuslan): FIL-420 check cache memory usage
296298
std::map<CID, std::shared_ptr<CborStream>> connections_;
297299

298300
/** State machine */

core/markets/storage/provider/impl/provider_impl.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ namespace fc::markets::storage::provider {
342342

343343
// coonnection manager
344344
std::mutex connections_mutex_;
345+
// TODO(turuslan): FIL-420 check cache memory usage
345346
std::map<CID, std::shared_ptr<CborStream>> connections_;
346347

347348
/** State machine */

core/miner/mining.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ namespace fc::mining {
6161
boost::optional<Tipset> ts;
6262
BigInt weight;
6363
size_t skip{};
64+
// TODO(turuslan): FIL-420 check cache memory usage
6465
std::unordered_set<std::pair<TipsetKey, size_t>, pair_hash> mined;
6566
boost::optional<MiningBaseInfo> info;
6667
};

core/miner/storage_fsm/impl/events_impl.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,12 @@ namespace fc::mining {
5454

5555
uint64_t global_id_;
5656

57+
// TODO(turuslan): FIL-420 check cache memory usage
5758
std::unordered_map<uint64_t, HeightHandle> height_triggers_;
5859

60+
// TODO(turuslan): FIL-420 check cache memory usage
5961
std::map<ChainEpoch, std::set<uint64_t>> height_to_trigger_; // for apply
62+
// TODO(turuslan): FIL-420 check cache memory usage
6063
std::map<ChainEpoch, std::set<uint64_t>>
6164
message_height_to_trigger_; // for revert
6265

core/miner/storage_fsm/impl/precommit_batcher_impl.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ namespace fc::mining {
5252

5353
std::mutex mutex_;
5454
TokenAmount mutual_deposit_;
55+
// TODO(turuslan): FIL-420 check cache memory usage
5556
std::map<SectorNumber, PreCommitEntry> batch_storage_;
5657
std::chrono::milliseconds max_delay_;
5758
std::shared_ptr<FullNodeApi> api_;
@@ -60,6 +61,7 @@ namespace fc::mining {
6061
std::chrono::milliseconds closest_cutoff_;
6162
std::chrono::system_clock::time_point cutoff_start_;
6263
common::Logger logger_;
64+
// TODO(turuslan): FIL-420 check cache memory usage
6365
std::map<SectorNumber, PrecommitCallback> callbacks_;
6466
std::shared_ptr<FeeConfig> fee_config_;
6567
AddressSelector address_selector_;

core/miner/storage_fsm/impl/sealing_impl.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ namespace fc::mining {
281281
SectorId minerSectorId(SectorNumber num) const;
282282

283283
mutable std::mutex sectors_mutex_;
284+
// TODO(turuslan): FIL-420 check cache memory usage
284285
std::unordered_map<SectorNumber, std::shared_ptr<SectorInfo>> sectors_;
285286

286287
struct UnsealedSectorInfo {
@@ -290,6 +291,7 @@ namespace fc::mining {
290291
std::vector<UnpaddedPieceSize> piece_sizes;
291292
};
292293

294+
// TODO(turuslan): FIL-420 check cache memory usage
293295
std::unordered_map<SectorNumber, UnsealedSectorInfo> unsealed_sectors_;
294296
std::shared_mutex unsealed_mutex_;
295297

core/miner/windowpost.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ namespace fc::mining {
4848
std::shared_ptr<Prover> prover;
4949
std::shared_ptr<FaultTracker> fault_tracker;
5050
Address miner, worker;
51+
// TODO(turuslan): FIL-420 check cache memory usage
5152
std::map<ChainEpoch, Cached> cache;
5253
uint64_t part_size;
5354
RegisteredPoStProof proof_type;

0 commit comments

Comments
 (0)