You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following code:
template Referent * cache_get(uint64_t node_target) {
object obj;
auto handle = get(std::to_string(node_target), obj);
if (!handle) {
obj = load(node_target, 0);
}
lock.get_read_lock(node_target);
return (Referent *)obj.target;
}
get is defined as follows:
CacheReadHandle cache::get(CacheKey key, object &obj) const {
auto handle = gcache_->find(key);
if (handle) {
std::memcpy(static_cast<void *>(&obj), handle->getMemory(), sizeof(obj));
}
}
after the return statement in cache_get, the code tries to fetch the refCount_ variable in Refcount.h in the function atomicUpdateValue. The segmentation fault is on line 471.
The text was updated successfully, but these errors were encountered:
In the following code:
template Referent * cache_get(uint64_t node_target) {
object obj;
auto handle = get(std::to_string(node_target), obj);
if (!handle) {
obj = load(node_target, 0);
}
lock.get_read_lock(node_target);
return (Referent *)obj.target;
}
get is defined as follows:
CacheReadHandle cache::get(CacheKey key, object &obj) const {
auto handle = gcache_->find(key);
if (handle) {
std::memcpy(static_cast<void *>(&obj), handle->getMemory(), sizeof(obj));
}
}
after the return statement in cache_get, the code tries to fetch the refCount_ variable in Refcount.h in the function atomicUpdateValue. The segmentation fault is on line 471.
The text was updated successfully, but these errors were encountered: