search for: javaclass

Displaying 20 results from an estimated 48 matches for "javaclass".

2013 Apr 15
2
[LLVMdev] [vmkit]Problems when modifying J3
Hi all, I am currently working with vmkit (especially on J3) for a student project, I want to made some experimentations on J3. I see in the file lib/j3/VMCore/JavaClass.h that if I want to add some attributes in the class JavaClass I must change a few thing in LLVMRuntime/* and in JnjvmModule.cpp. But JnjvmModule.cpp does not exist anymore. So my first question is : what is the equivalent of JnjvmModule.cpp right now ? Secondly, I also want to add attributes in...
2013 Apr 17
1
[LLVMdev] [vmkit]Problems when modifying J3
Hi Julien, I found out what was missing for adding a field to JavaClass. While precompiling Java code (JavaAOTCompiler) we create an equivalent LLVM Constant object for each class. So modifying the internal representation of a class means that you also have to modify the AOTCompiler. Here is a patch with a tiny example where an int is added to JavaClass. If you wan...
2013 Apr 16
0
[LLVMdev] [vmkit]Problems when modifying J3
Hi Julien, I also tried to add a field and get the same error as you. In theory, to add a field in JavaClass or JavaCommonClass you have to put your field at the end of the declaration list (in order to minimize index changes in J3Intrinsics) in C++ code and in LLVMRuntime/runtime-single.ll We are working on this issue to see what is going wrong. The problem is the fact that the error is not determinis...
2010 Jul 19
0
[LLVMdev] Fwd: Building VMKit
Hi Joshua, > $ j3 Hello > j3: JavaClass.cpp:480: j3::JavaObject* j3::Class::doNew(j3::Jnjvm*): > Assertion `(this->isInitializing() || > classLoader->getCompiler()->isStaticCompiling()) && "Uninitialized class > when allocating."' failed. > Aborted Regarding to j3 in 64 bit version, it should w...
2010 Jul 19
1
[LLVMdev] Fwd: Building VMKit
...AM Subject: Re: [LLVMdev] Building VMKit To: nicolas geoffray <nicolas.geoffray at gmail.com> Thanks Nicolas, that worked great! Now, I'm having trouble invoking the compiler properly: $ llcj Hello.class -o=Hello.ll $ cat Hello.ll cat: Hello.ll: No such file or directory $ j3 Hello j3: JavaClass.cpp:480: j3::JavaObject* j3::Class::doNew(j3::Jnjvm*): Assertion `(this->isInitializing() || classLoader->getCompiler()->isStaticCompiling()) && "Uninitialized class when allocating."' failed. Aborted $ java Hello hello, world! "Hello" is a completely banal...
2009 Nov 20
2
[LLVMdev] VMKIT problem
Hi, I intent to use VMKIT to convert java byte codes to LLVM IR I have installed VMKIT 0.26, on running jnjvm (as ./jnjvm Hello.class) in Release/bin I get the same error irrespective of class content : jnjvm: JavaClass.cpp:469: jnjvm::JavaObject* jnjvm::Class::doNew(jnjvm::Jnjvm*): Assertion `(this->isInitializing() || classLoader->getCompiler()->isStaticCompiling()) && "Uninitialized class when allocating."' failed. Aborted Am I doing something wrong?Any help regading how to use t...
2010 Jul 20
0
[LLVMdev] Fwd: Building VMKit
...sure where to go from here. Does this fit with any of the known > problems under 64-bit linux? > > Thanks, > Joshua > > > On Mon, Jul 19, 2010 at 4:45 PM, Minas Abrahamyan <minas.subs at gmail.com>wrote: > >> Hi Joshua, >> > $ j3 Hello >> > j3: JavaClass.cpp:480: j3::JavaObject* j3::Class::doNew(j3::Jnjvm*): >> > Assertion `(this->isInitializing() || >> > classLoader->getCompiler()->isStaticCompiling()) && "Uninitialized class >> > when allocating."' failed. >> > Aborted >> &g...
2010 Jul 20
4
[LLVMdev] Fwd: Building VMKit
...I was only a few days out of date). I'm not sure where to go from here. Does this fit with any of the known problems under 64-bit linux? Thanks, Joshua On Mon, Jul 19, 2010 at 4:45 PM, Minas Abrahamyan <minas.subs at gmail.com>wrote: > Hi Joshua, > > $ j3 Hello > > j3: JavaClass.cpp:480: j3::JavaObject* j3::Class::doNew(j3::Jnjvm*): > > Assertion `(this->isInitializing() || > > classLoader->getCompiler()->isStaticCompiling()) && "Uninitialized class > > when allocating."' failed. > > Aborted > > Regarding to j3 i...
2010 Jul 20
2
[LLVMdev] Fwd: Building VMKit
...ith any of the known >> problems under 64-bit linux? >> >> Thanks, >> Joshua >> >> >> On Mon, Jul 19, 2010 at 4:45 PM, Minas Abrahamyan <minas.subs at gmail.com>wrote: >> >>> Hi Joshua, >>> > $ j3 Hello >>> > j3: JavaClass.cpp:480: j3::JavaObject* j3::Class::doNew(j3::Jnjvm*): >>> > Assertion `(this->isInitializing() || >>> > classLoader->getCompiler()->isStaticCompiling()) && "Uninitialized >>> class >>> > when allocating."' failed. >>...
2009 Nov 20
3
[LLVMdev] VMKIT problem
...gt;> >> Hi, >> >> I intent to use VMKIT to convert java byte codes to LLVM IR >> >> I have installed VMKIT 0.26, on running jnjvm (as ./jnjvm >> Hello.class) in Release/bin I get the same error irrespective of class >> content : >> >> jnjvm: JavaClass.cpp:469: jnjvm::JavaObject* >> jnjvm::Class::doNew(jnjvm::Jnjvm*): Assertion `(this->isInitializing() >> || classLoader->getCompiler()->isStaticCompiling()) && "Uninitialized >> class when allocating."' failed. >> Aborted >> >> Am I...
2011 Aug 23
2
[LLVMdev] VMKit build error
I'm trying to build the SVN version of VMKit and I'm getting this error while building. I have llvm and clang built from SVN too. Any help? llvm[2]: Building Release+Asserts mmtk-vmkit.jar all vmjc: JavaClass.cpp:442: j3::JavaObject *j3::Class::doNew(j3::Jnjvm *): Assertion `this && "No class when allocating."' failed. 0 vmjc 0x0000000000e9c44f 1 vmjc 0x0000000000e9cf8a 2 libpthread.so.0 0x00002ac09794bc60 3 libc.so.6 0x00002ac09874cd05 gsignal + 53...
2010 Jul 20
0
[LLVMdev] Fwd: Building VMKit
...nder 64-bit linux? >>> >>> Thanks, >>> Joshua >>> >>> >>> On Mon, Jul 19, 2010 at 4:45 PM, Minas Abrahamyan <minas.subs at gmail.com>wrote: >>> >>>> Hi Joshua, >>>> > $ j3 Hello >>>> > j3: JavaClass.cpp:480: j3::JavaObject* j3::Class::doNew(j3::Jnjvm*): >>>> > Assertion `(this->isInitializing() || >>>> > classLoader->getCompiler()->isStaticCompiling()) && "Uninitialized >>>> class >>>> > when allocating."'...
2009 Nov 20
0
[LLVMdev] VMKIT problem
...Thanks! Nicolas Nataraj Sundar wrote: > Hi, > > I intent to use VMKIT to convert java byte codes to LLVM IR > > I have installed VMKIT 0.26, on running jnjvm (as ./jnjvm > Hello.class) in Release/bin I get the same error irrespective of class > content : > > jnjvm: JavaClass.cpp:469: jnjvm::JavaObject* > jnjvm::Class::doNew(jnjvm::Jnjvm*): Assertion `(this->isInitializing() > || classLoader->getCompiler()->isStaticCompiling()) && "Uninitialized > class when allocating."' failed. > Aborted > > Am I doing something wrong?...
2010 Jul 19
3
[LLVMdev] Building VMKit
Sure: I'm on 64-bit Ubuntu Linux 10.04 with gcc 4.4.3. I followed the instructions on http://vmkit.llvm.org/get_started.html, as near as I can tell. I configured llvm with the default configuration: ./configure I configured vmkit with: ./configure --with-llvmsrc=/home/jowarner/code/llvm/ --with-llvmobj=/home/jowarner/code/llvm/ --with-gnu-classpath-glibj=/usr/share/classpath/glibj.zip
2013 Nov 21
2
[LLVMdev] vmkit2 core dump after building mmtk
.../path/to/code/vmkit2/mmtk/java/build.xml main: [javac] Compiling 1 source file to /path/to/code/vmkit2/mmtk/java/classes [jar] Building jar: /path/to/code/vmkit2/mmtk/java/mmtk-vmkit.jar BUILD SUCCESSFUL Total time: 0 seconds [vmkit ./mmtk/java]: Compiling 'mmtk-vmkit.jar' vmjc: JavaClass.cpp:496: j3::JavaObject *j3::Class::doNew(j3::Jnjvm *): Assertion `(this->isInitializing() || classLoader->getCompiler()->isStaticCompiling() || this == classLoader->bootstrapLoader->upcalls->newClass) && "Uninitialized class when allocating."' failed. 0 vmj...
2010 Jul 20
2
[LLVMdev] Fwd: Building VMKit
..., >>>> Joshua >>>> >>>> >>>> On Mon, Jul 19, 2010 at 4:45 PM, Minas Abrahamyan <minas.subs at gmail.com >>>> > wrote: >>>> >>>>> Hi Joshua, >>>>> > $ j3 Hello >>>>> > j3: JavaClass.cpp:480: j3::JavaObject* j3::Class::doNew(j3::Jnjvm*): >>>>> > Assertion `(this->isInitializing() || >>>>> > classLoader->getCompiler()->isStaticCompiling()) && "Uninitialized >>>>> class >>>>> > when allocat...
2011 Aug 23
0
[LLVMdev] VMKit build error
...M, Frederic Perez Ordeig <fredericp at gmail.com> wrote: > I'm trying to build the SVN version of VMKit and I'm getting this error > while building. > I have llvm and clang built from SVN too. > Any help? > llvm[2]: Building Release+Asserts mmtk-vmkit.jar all > vmjc: JavaClass.cpp:442: j3::JavaObject *j3::Class::doNew(j3::Jnjvm *): > Assertion `this && "No class when allocating."' failed. > 0  vmjc            0x0000000000e9c44f > 1  vmjc            0x0000000000e9cf8a > 2  libpthread.so.0 0x00002ac09794bc60 > 3  libc.so.6       0x00002...
2011 Jan 11
2
[LLVMdev] VMKit link
...nction `mvm::SpinLock::acquire()': /root/llvm/vmkit/include/mvm/Threads/Locks.h:164: undefined reference to `__sync_val_compare_and_swap_4' /root/llvm/vmkit/include/mvm/Threads/Locks.h:168: undefined reference to `__sync_val_compare_and_swap_4' /root/llvm/vmkit/Debug+Asserts/lib/libJ3.a(JavaClass.o): In function `j3::Class::resolveClass()': /root/llvm/vmkit/lib/J3/VMCore/JavaClass.cpp:941: undefined reference to `__sync_val_compare_and_swap_1' /root/llvm/vmkit/Debug+Asserts/lib/libJ3.a(JavaObject.o): In function `j3::JavaObject::hashCode(j3::JavaObject*)': /root/llvm/vmkit/lib/J...
2009 Nov 20
2
[LLVMdev] VMKIT problem
...to convert java byte codes to LLVM IR >> >> >> >> I have installed VMKIT 0.26, on running jnjvm (as ./jnjvm >> >> Hello.class) in Release/bin I get the same error irrespective of class >> >> content : >> >> >> >> jnjvm: JavaClass.cpp:469: jnjvm::JavaObject* >> >> jnjvm::Class::doNew(jnjvm::Jnjvm*): Assertion `(this->isInitializing() >> >> || classLoader->getCompiler()->isStaticCompiling()) && "Uninitialized >> >> class when allocating."' failed. >>...
2009 Nov 20
0
[LLVMdev] VMKIT problem
...t; I intent to use VMKIT to convert java byte codes to LLVM IR > >> > >> I have installed VMKIT 0.26, on running jnjvm (as ./jnjvm > >> Hello.class) in Release/bin I get the same error irrespective of class > >> content : > >> > >> jnjvm: JavaClass.cpp:469: jnjvm::JavaObject* > >> jnjvm::Class::doNew(jnjvm::Jnjvm*): Assertion `(this->isInitializing() > >> || classLoader->getCompiler()->isStaticCompiling()) && "Uninitialized > >> class when allocating."' failed. > >> Aborte...