corda/src
Joel Dice 1735a7976a do not omit calls to empty methods which may trigger class initialization
There's a small optimization in compileDirectInvoke which tries to
avoid generating calls to empty methods.  However, this causes
problems for code which uses such a call to ensure a class is
initialized -- if we omit that call, the class may not be
initialized and any side effects of that initialization may not
happen when the program expects them to.

This commit ensures that the compiler only omits empty method calls
when the target class does not need initialization.  It also removes
commented-out code in classpath-openjdk.cpp which was responsible for
loading libmawt proactively; that was a hack to get JogAmp to work
before we understood what the real problem was.
2014-02-10 08:40:14 -07:00
..
android fix Android classpath build 2013-07-05 14:36:16 -06:00
avian use armv7 memory barriers by default 2014-01-10 17:32:54 -07:00
codegen use armv7 memory barriers by default 2014-01-10 17:32:54 -07:00
heap Implement Runtime#{free,total}Memory() 2013-12-04 15:19:06 -06:00
lzma fix endianess bug in LZMA decoding 2012-06-06 12:58:24 -06:00
openjdk fix openjdk-src build failures on osx 10.9 2013-12-07 16:43:18 -07:00
tools fix Method.getModifiers crash due to bootimage miscompile 2014-01-07 09:04:13 -07:00
util update copyright years 2013-07-02 20:52:38 -06:00
vm/system rename JNIEXPORT to AVIAN_EXPORT in common.h, to avoid conflicting with jni.h 2013-11-08 08:35:17 -07:00
arm.masm update copyright years 2013-07-02 20:52:38 -06:00
arm.S update copyright years 2013-07-02 20:52:38 -06:00
boot-javahome.cpp update copyright years 2013-07-02 20:52:38 -06:00
boot.cpp update copyright years 2013-07-02 20:52:38 -06:00
bootimage-fields.cpp add optional LZMA support for compressing embedded JARs, boot images, and shared objects 2012-06-02 09:06:22 -06:00
bootimage-template.cpp fix msvc build 2013-03-04 11:09:59 -07:00
builtin.cpp move Unsafe.putObjectVolatile and putOrderedObject implementations 2014-01-02 18:00:53 -07:00
classpath-android.cpp fix various Android test suite regressions and add more reflection tests 2013-12-06 18:48:47 -07:00
classpath-avian.cpp implement Unsafe.objectFieldOffset for the Avian class library 2014-01-03 11:13:21 -07:00
classpath-openjdk.cpp do not omit calls to empty methods which may trigger class initialization 2014-02-10 08:40:14 -07:00
compile-arm.masm update copyright years 2013-07-02 20:52:38 -06:00
compile-arm.S update copyright years 2013-07-02 20:52:38 -06:00
compile-powerpc.S update copyright years 2013-07-02 20:52:38 -06:00
compile-x86.masm update copyright years 2013-07-02 20:52:38 -06:00
compile-x86.S update copyright years 2013-07-02 20:52:38 -06:00
compile.cpp do not omit calls to empty methods which may trigger class initialization 2014-02-10 08:40:14 -07:00
continuations-x86.S update copyright years 2013-07-02 20:52:38 -06:00
embed.cpp update copyright years 2013-07-02 20:52:38 -06:00
embedded-loader.cpp update copyright years 2013-07-02 20:52:38 -06:00
finder.cpp use "lzma." prefix for LZMA-compressed embedded jars 2014-01-18 19:41:43 -07:00
heapdump.cpp update copyright years 2013-07-02 20:52:38 -06:00
heapwalk.cpp update copyright years 2013-07-02 20:52:38 -06:00
interpret.cpp prevent busywait loops from blocking the VM in interpret mode 2013-12-13 11:48:26 -07:00
jnienv.cpp rename JNIEXPORT to AVIAN_EXPORT in common.h, to avoid conflicting with jni.h 2013-11-08 08:35:17 -07:00
lzma-decode.cpp update copyright years 2013-07-02 20:52:38 -06:00
lzma-encode.cpp update copyright years 2013-07-02 20:52:38 -06:00
machine.cpp fix Method.getModifiers crash due to bootimage miscompile 2014-01-07 09:04:13 -07:00
main.cpp update copyright years 2013-07-02 20:52:38 -06:00
powerpc-regs.S enable Linux PowerPC build 2011-02-26 12:45:22 -07:00
powerpc.S update copyright years 2013-07-02 20:52:38 -06:00
process.cpp update copyright years 2013-07-02 20:52:38 -06:00
thunks.cpp make sure a busy-waiting loop can't block the GC (and hence the whole VM) 2013-12-13 10:39:36 -07:00
types.def Implement Class#getDeclaredClasses 2013-11-06 09:07:58 -06:00
util.cpp consolidate many implicit list types into one 2013-12-11 10:54:50 -07:00
x86.masm update copyright years 2013-07-02 20:52:38 -06:00
x86.S Update x86.S 2013-07-28 10:39:55 -03:00