Commit Graph

3171 Commits

Author SHA1 Message Date
d0ac63292c Fix crash if no avian.boostrap is specified (oops) 2013-02-09 09:42:35 +02:00
bd2a836395 Fix crash if no avian.boostrap is specified (oops) 2013-02-09 09:42:34 +02:00
bde33c97f8 Fix crash if no avian.boostrap is specified 2013-02-09 09:42:33 +02:00
9ed312451a Allow avian.bootstrap to accept multiple libraries 2013-02-09 09:42:32 +02:00
c13149088e Fix crash on memory validation 2013-02-09 09:42:31 +02:00
71052fa50c Fix WP8/WinRT ARM build 2013-02-09 09:42:30 +02:00
c6694287e9 Finally, proper jvm.dll linking for WP8 2013-02-09 09:42:29 +02:00
d51db00136 Allow output of exceptions to debugger. Generate WinMD file 2013-02-09 09:42:28 +02:00
aaa60aebff Makefile changes, added additional compiler flags 2013-02-09 09:42:27 +02:00
4228f69a0d Additional AOT_ONLY ifdef 2013-02-09 09:42:26 +02:00
acdd297fb2 Fixes to WP8/WinRT support 2013-02-09 09:42:25 +02:00
5e0b073eff Fix library overwriting ; proper assembler flags 2013-02-09 09:42:24 +02:00
2d11e7ccd4 Add last modified to file 2013-02-09 09:42:23 +02:00
dca12d3cd0 WinRT/WP8 process=compile 2013-02-09 09:42:22 +02:00
4d03650544 Replaced TODO comments with messages ; More correct AVIAN_AOT_ONLY usage 2013-02-09 09:42:21 +02:00
1b43caf815 Makefile fix 2013-02-09 09:42:20 +02:00
2f2cac556c Windows Phone 8 / Windows RT initial support
Conflicts:

	makefile
2013-02-09 09:42:19 +02:00
cc237b94c4 Fix proguard warnings
Conflicts:

	TODO.if.merge
2013-02-09 09:42:18 +02:00
51e8a00f58 Add android redirect to logcat 2013-02-09 09:42:17 +02:00
c368a8b74a Fix android makefile 2013-02-09 09:42:16 +02:00
1f77d15040 Path fix 2013-02-09 09:42:15 +02:00
b1990ba55f Android toolchain 2013-02-09 09:42:14 +02:00
3a42db9f6f Add android platform 2013-02-09 09:42:13 +02:00
c8ca83836a Fix RAF 2013-02-09 09:42:12 +02:00
f1b2b3f78d RandomAccessFile 2013-02-09 09:42:12 +02:00
d6aff87ef9 Add java lang math methods 2013-02-09 09:42:11 +02:00
85ce7696ca java.lang.Math.log() and java.lang.Math.tan() 2013-02-09 09:42:10 +02:00
07e3294937 use rpath=$ORIGIN instead of LD_LIBRARY_PATH
Hi

If libjvm.so is in the same directory as avian-dynamic, then there's
no need for LD_LIBRARY_PATH to include that directory, we can just set
the rpath in avian-dynamic to $ORIGIN when linking it. Working patch
attached.

Regards
Damjan
2013-02-08 09:34:26 -07:00
f9b3be0301 fix format string in loadLibrary call to snprintf
"%*s" means "at least", whereas "%.*s" means at most, and the latter
is what I intended.  This only became noticable as of 9f22a70, when I
added another directory to the library path, which caused loadLibrary
to fail to find libraries in either directory.
2013-02-08 08:24:06 -07:00
ce9d7c35bb mention FreeBSD support in README.md
Courtesy of Damjan Jovanovic.
2013-02-06 07:54:04 -07:00
f2552ab4c5 Merge remote-tracking branch 'csoren/winxp' 2013-02-05 09:54:01 -07:00
5a07e04d56 assert that there are no outstanding Get*Critical requests during allocation
When GetStringCritical or GetPrimitiveArrayCritical are called, the VM
cannot risk new Java heap allocations until the corresponding release
method is called because allocations may result in GC, which cannot
happen while a string or array is pinned in memory.  We already have a
check for this latter in the footprint function used during GC, but
it's best to catch the problem as early as possible.
2013-02-05 09:48:20 -07:00
757d8427ea Add missing classes for Windows XP 2013-02-05 11:36:09 +01:00
5b051f5138 Merge remote-tracking branch 'readytalk/master' 2013-02-05 07:56:14 +01:00
57a67fb312 Fix field names, add getters to j.l.Package 2013-02-04 14:14:45 +01:00
5dcf6eae5a fix GC safety issue in MyClasspath::updatePackageMap 2013-02-03 20:29:24 -07:00
e8f8ebdc67 fail quickly if an object allocation cannot be satisfied
Previously, we would blithely exceed the heap ceiling and force the
next allocation to deal with the problem, including a major GC and
possible OutOfMemoryError.  As of this commit, we throw an error
immediately if we find that the allocation will push us over the
ceiling.
2013-02-03 15:53:36 -07:00
23bb2e8743 force a GC in allocate3 if the heap limit has been exceeded
Otherwise, we'll throw an OOME even though there may be enough
unreachable objects eligible for collection to get back below the
limit.
2013-02-03 15:20:53 -07:00
3db9e73aa1 fix GC safety issues in classpath-openjdk.cpp 2013-02-03 15:19:35 -07:00
80c8940b7f ensure joining threads are always notified when a thread exits
Previously, we'd only do this if the thread exited without throwing an
exception.  Now we do it regardless.
2013-02-03 15:18:32 -07:00
1890e348fb fix handling of classe, method, and field names with non-ASCII characters 2013-02-03 14:10:47 -07:00
1db67e463f Add Class#isEnum and improve error handling in Enum.valueOf 2013-02-03 16:03:15 +01:00
b1eb4b9718 Adds code to get the Scala REPL working 2013-01-30 04:31:38 +01:00
0c5471d25e remove temporary #error used for debugging
Sorry, that wasn't supposed to be checked in.
2013-01-28 16:24:08 -07:00
67fd707254 fix handling of unusual exception handler layout
Scala sometimes generates bytecode such that the scope of an exception
handler starts at another exception handler, e.g.:

      Exception table:
         from    to  target type
           290   372   382   any
           382   451   451   any
           290   372   451   any

Avian's compiler was incorrectly initializing the stack frame for the
second handler in this case.  This commit fixes the problem.
2013-01-26 22:06:53 -07:00
75f5921b3e revert accidental makefile change 2013-01-26 20:07:18 -07:00
dec2095c63 fix openjdk bootimage cross builds
We need to extract the OpenJDK classes into the build classpath
directory for the target platform before running the
bootimage-generator, or else it won't be able to find the classes.
2013-01-26 18:01:34 -07:00
70a7a50a49 fix int-to-long conversions from memory on x86_32
The instruction for 32-bit-to-64-bit sign extension on x86_32 requires
that the input value be placed in EAX and the sign extension in EDX.
However, the compiler can get confused if the input value is in memory
addressed via one of those registers and doesn't know how to move it.
This patch works around that limitation by doing the move explicitly
in MemoryEvent::compile if necessary.
2013-01-26 17:15:15 -07:00
1a44ec9eef fix incorrect macro name in bootimage.cpp 2013-01-25 16:47:31 -07:00
2131adf3aa fix Windows OpenJDK build 2013-01-25 08:07:47 -07:00