// This file implements the "bridge" between Java and C++ for
// ROCKSDB_NAMESPACE::ClockCache.
+#include "cache/clock_cache.h"
+
#include <jni.h>
-#include "cache/clock_cache.h"
#include "include/org_rocksdb_ClockCache.h"
+#include "rocksjni/cplusplus_to_java_convert.h"
/*
* Class: org_rocksdb_ClockCache
ROCKSDB_NAMESPACE::NewClockCache(
static_cast<size_t>(jcapacity), static_cast<int>(jnum_shard_bits),
static_cast<bool>(jstrict_capacity_limit)));
- return reinterpret_cast<jlong>(sptr_clock_cache);
+ return GET_CPLUSPLUS_POINTER(sptr_clock_cache);
}
/*