Diff of /build.xml [5cf396] .. [f88d2a]  Maximize  Restore

  Switch to side-by-side view

--- a/build.xml
+++ b/build.xml
@@ -1485,6 +1485,15 @@
       <class name="org.jikesrvm.runtime.DynamicLibrary"/>
     </javah>
   </target>
+  
+  <!-- Generate JNI headers for JVMTI wrapper -->
+  <target name="gen-jvmti-headers" depends="gen-asm">
+    <mkdir dir="${build.native}"/>
+    <javah outputFile="${build.native}/org_jikesrvm_runtime_JVMTIAgent.h"
+           classPath="${build.vm.jar}">
+      <class name="org.jikesrvm.runtime.JVMTIAgent"/>
+    </javah>
+  </target>
 
   <target name="gen-runbootimage" depends="check-properties,get-hg-version">
     <mkdir dir="${build.native}"/>
@@ -1499,7 +1508,7 @@
   </target>
 
   <!-- generate all headers required when compiling bootloader -->
-  <target name="gen-booter-headers" depends="gen-jni-headers,gen-interface,gen-runbootimage"/>
+  <target name="gen-booter-headers" depends="gen-jni-headers,gen-jvmti-headers,gen-interface,gen-runbootimage"/>
 
   <!-- Setup any properties required during native compile of bootloader -->
   <target name="check-bootloader-properties" depends="setup-filter-properties">
@@ -1629,6 +1638,7 @@
       <arg value="-L${build.base}"/>
       <arg value="-lrvm"/>
       <arg value="${bl.dir}/org_jikesrvm_runtime_DynamicLibrary.c"/>
+      <arg value="${bl.dir}/org_jikesrvm_runtime_JVMTIAgent.c"/>
     </exec>
 
     <condition property="perfevent.lib" value="-lpfm" else="">

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks