31 #ifndef ORG_GRAPHLAB_CORE_HPP
32 #define ORG_GRAPHLAB_CORE_HPP
35 #include <graphlab.hpp>
38 #include "org_graphlab_Core.h"
48 template <
typename Graph,
typename UpdateFunctor>
58 typedef core<Graph, UpdateFunctor> core_type;
76 this->mcore =
new core_type();
123 int res = mjvm->DetachCurrentThread();
130 static void dump_backtrace(
int sig){
136 size = backtrace(array, 10);
139 backtrace_symbols_fd(array, size, 2);
145 const char *exception,
146 const char *message){
147 jclass exc = env->FindClass(exception);
148 if (NULL == exc)
return;
149 env->ThrowNew(exc, message);
168 int res = mjvm->AttachCurrentThread((
void **)&jenv, NULL);