Skip to content

Commit

Permalink
[hypertable] Update hypertable implementation to match updated local-…
Browse files Browse the repository at this point in the history
…hypertable implementation in cheetah.
  • Loading branch information
neboat committed Jan 7, 2024
1 parent 15c8cd4 commit 4493af8
Show file tree
Hide file tree
Showing 3 changed files with 169 additions and 193 deletions.
7 changes: 4 additions & 3 deletions cilksan/cilksan_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class CilkSanImpl_t {
// Attempt to look up a view for a reducer. Returns a pointer to a view if it
// exists and nullptr if not.
void *reducer_lookup(hyper_table *reducer_views, uintptr_t key) const {
bucket *b = reducer_views->find(key);
hyper_table::bucket *b = reducer_views->find(key);
if (b) {
assert(key == b->key);
return b->value.view;
Expand All @@ -192,8 +192,9 @@ class CilkSanImpl_t {
identity(new_view);

// Insert the view into the table of reducer_views.
bucket new_bucket = {.key = (uintptr_t)key,
.value = {.view = new_view, .reduce_fn = reduce}};
hyper_table::bucket new_bucket = {
.key = (uintptr_t)key,
.value = {.view = new_view, .reduce_fn = reduce}};
bool success = reducer_views->insert(new_bucket);
assert(success && "create_reducer_view failed to insert new reducer.");
(void)success;
Expand Down
Loading

0 comments on commit 4493af8

Please sign in to comment.