*/
-
#include "config.h"
-#include "mm/memory.h"
+#include "mm/memory.hpp"
-#include "vm/jit/code.h"
+#include "vm/jit/code.hpp"
#include "vm/jit/oprofile-agent.hpp"
#include <string.h>
{
_handle = op_open_agent();
if (!_handle)
- vm_abort_errno("unable to open opagent handle:");
+ os::abort_errno("unable to open opagent handle");
}
/**
_handle = 0;
}
-/* Legacy C interface *********************************************************/
-
-extern "C" {
-
-void OprofileAgent_initialize() { OprofileAgent::initialize(); }
-void OprofileAgent_newmethod(methodinfo *m) { OprofileAgent::newmethod(m); }
-void OprofileAgent_close() { OprofileAgent::close(); }
-
-}
/*
* These are local overrides for various environment variables in Emacs.
* Emacs will automagically detect them.
* ---------------------------------------------------------------------
* Local variables:
- * mode: c
+ * mode: c++
* indent-tabs-mode: t
* c-basic-offset: 4
* tab-width: 4