[vmkit-commits] [vmkit] r195258 - Back-porting generic new features from work done on OSGi bundles monitoring in J3.

Koutheir Attouchi koutheir at gmail.com
Wed Nov 20 09:12:50 PST 2013


Author: koutheir
Date: Wed Nov 20 11:12:50 2013
New Revision: 195258

URL: http://llvm.org/viewvc/llvm-project?rev=195258&view=rev
Log:
Back-porting generic new features from work done on OSGi bundles monitoring in J3.

Added:
    vmkit/trunk/include/vmkit/StackEmbeddedList.h   (with props)

Added: vmkit/trunk/include/vmkit/StackEmbeddedList.h
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/include/vmkit/StackEmbeddedList.h?rev=195258&view=auto
==============================================================================
--- vmkit/trunk/include/vmkit/StackEmbeddedList.h (added)
+++ vmkit/trunk/include/vmkit/StackEmbeddedList.h Wed Nov 20 11:12:50 2013
@@ -0,0 +1,49 @@
+
+#if JAVA_INTERFACE_CALL_STACK
+
+#ifndef STACK_EMBEDDED_LIST_NODE_H_
+#define STACK_EMBEDDED_LIST_NODE_H_
+
+#include "vmkit/System.h"
+
+namespace vmkit {
+
+class Thread;
+
+}
+
+namespace j3 {
+
+class JavaMethod;
+
+enum StackEmbeddedListID {
+	StackEmbeddedListIntendedCaller = 0,
+
+	StackEmbeddedListNodeCountPerThread
+};
+
+struct StackEmbeddedListNode
+{
+	StackEmbeddedListNode* callerNode;
+	word_t data[1];
+
+	void initialize() {
+		callerNode = NULL;
+		memset(data, 0, sizeof(*data) * StackEmbeddedListNodeCountPerThread);
+	}
+
+	void dump() const __attribute__((noinline));
+};
+
+}
+
+extern "C" void pushIntendedInvokedMethodNode(
+	vmkit::Thread* thread, j3::StackEmbeddedListNode* node,
+	j3::JavaMethod* intendedMethod);
+
+extern "C" void popIntendedInvokedMethodNode(
+	vmkit::Thread* thread, j3::StackEmbeddedListNode* node);
+
+#endif
+
+#endif

Propchange: vmkit/trunk/include/vmkit/StackEmbeddedList.h
------------------------------------------------------------------------------
    svn:mime-type = text/plain





More information about the vmkit-commits mailing list