Commit Graph

3298 Commits

Author SHA1 Message Date
Alexey Pelykh
f1b2b3f78d RandomAccessFile 2013-02-09 09:42:12 +02:00
Victor Shcherb
d6aff87ef9 Add java lang math methods 2013-02-09 09:42:11 +02:00
Alexey Pelykh
85ce7696ca java.lang.Math.log() and java.lang.Math.tan() 2013-02-09 09:42:10 +02:00
Joel Dice
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
Joel Dice
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
Joel Dice
6d4f797b66 fix handling of non-ascii characters in filenames on Windows 2013-02-07 11:39:04 -07:00
Joel Dice
b38eecbefa specify O_BINARY when opening files on Windows 2013-02-07 11:35:48 -07:00
Joel Dice
5241660463 fix SIGSEGV and off-by-one error in logDebug
We must use separate va_start/va_end pairs for each call to vsnprintf
on Linux and possibly other platforms in order to avoid a crash.
Also, we need to give it room to null terminate the string at the
right point.
2013-02-07 09:33:22 -07:00
Joel Dice
ef11cd1d8d rename clean to clean-current, and clean-all back to clean
This way, the clean target continues to do what it always did: delete
the whole build directory.  You can use clean-current to just delete
the currently-configured build directory.
2013-02-07 09:33:21 -07:00
Joel Dice
82d4ced160 specify UTF-8 encoding to javac
This fixes "illegal character" errors when compiling e.g. Misc.java on
systems where the default encoding is not UTF-8.
2013-02-07 09:33:21 -07:00
Joel Dice
d97fe5304f use THREAD_RUNTIME_ARRAY instead of RUNTIME_ARRAY where appropriate
This ensures that if the stack is unwound for an exception we'll still
release the memory.
2013-02-07 09:33:20 -07:00
Alexey Pelykh
f2d2c9af29 Fix for windows ::open 2013-02-07 11:43:39 +02:00
Alexey Pelykh
9e4144f92b Trace writeout refactor 2013-02-07 11:39:28 +02:00
Alexey Pelykh
e6fc4e3bea RUNTIME_ARRAY usage 2013-02-07 11:39:27 +02:00
Alexey Pelykh
edbea8ac2b Comment out printTrace 2013-02-07 11:39:27 +02:00
Alexey Pelykh
18cb5ba379 Make clean target more robust
Conflicts:

	.gitignore
2013-02-07 11:39:26 +02:00
Alexey Pelykh
33d4f008f4 Fix dword<>qword mistake 2013-02-07 11:39:25 +02:00
Alexey Pelykh
023af5102e Remove empty lines
Conflicts:

	classpath/java-lang.cpp
2013-02-07 11:39:24 +02:00
Alexey Pelykh
1d60ababd3 Support built-in jars when wusing multi-library 2013-02-07 11:39:23 +02:00
Alexey Pelykh
0ff703d1c0 Culture fixes ; Path extensions 2013-02-07 11:39:22 +02:00
Alexey Pelykh
2362235b4c getErrorStr() for Windows platforms 2013-02-07 11:39:21 +02:00
Alexey Pelykh
41c7269896 Support new WinRT interop 2013-02-07 11:39:20 +02:00
Alexey Pelykh
34179f3332 Added comments regarding java.io.File.toAbsolute() and WinRT/WP8 2013-02-07 11:39:19 +02:00
Alexey Pelykh
c33c148b6b Add notifications about improvements possible 2013-02-07 11:39:18 +02:00
Alexey Pelykh
cb46cb0ba8 WP8/WinRT : Proper absolute path
WP8/WinRT : Last modified time
2013-02-07 11:39:17 +02:00
Alexey Pelykh
ebf6277660 java.io.RandomAccessFile for WinPhone8 / WinRT 2013-02-07 11:39:16 +02:00
Alexey Pelykh
3f22c6d8e3 Remove debug code 2013-02-07 11:39:15 +02:00
Alexey Pelykh
a03fda0c1d Instead of throwing exception, just return initial file name 2013-02-07 11:39:15 +02:00
Alexey Pelykh
3287b1354a Fix crash if no avian.boostrap is specified (oops) 2013-02-07 11:39:14 +02:00
Alexey Pelykh
ba0ec3759d Fix crash if no avian.boostrap is specified (oops) 2013-02-07 11:39:13 +02:00
Alexey Pelykh
8e879f80a7 Fix crash if no avian.boostrap is specified (oops) 2013-02-07 11:39:12 +02:00
Alexey Pelykh
2e3856211b Fix crash if no avian.boostrap is specified 2013-02-07 11:39:11 +02:00
Alexey Pelykh
e523547b19 Allow avian.bootstrap to accept multiple libraries 2013-02-07 11:39:10 +02:00
Alexey Pelykh
9b9bc1de00 Fix crash on memory validation 2013-02-07 11:39:09 +02:00
Alexey Pelykh
d468d7eaba Fix WP8/WinRT ARM build 2013-02-07 11:39:08 +02:00
Alexey Pelykh
7cd194b5de Finally, proper jvm.dll linking for WP8 2013-02-07 11:39:07 +02:00
Alexey Pelykh
5a1b478b89 Allow output of exceptions to debugger. Generate WinMD file 2013-02-07 11:39:06 +02:00
Alexey Pelykh
d6ba068b4b Makefile changes, added additional compiler flags 2013-02-07 11:39:05 +02:00
Alexey Pelykh
fa034c7526 Additional AOT_ONLY ifdef 2013-02-07 11:39:04 +02:00
Alexey Pelykh
4840f4a019 Fixes to WP8/WinRT support 2013-02-07 11:39:03 +02:00
Alexey Pelykh
1590bd0554 Fix library overwriting ; proper assembler flags 2013-02-07 11:39:02 +02:00
Victor Shcherb
ce1f76a3e9 Add last modified to file 2013-02-07 11:39:01 +02:00
Alexey Pelykh
9c67acfaf1 WinRT/WP8 process=compile 2013-02-07 11:39:00 +02:00
Alexey Pelykh
a78959a480 Replaced TODO comments with messages ; More correct AVIAN_AOT_ONLY usage 2013-02-07 11:38:59 +02:00
Alexey Pelykh
c5adad9dce Makefile fix 2013-02-07 11:38:58 +02:00
Alexey Pelykh
0cbaad6495 Windows Phone 8 / Windows RT initial support
Conflicts:

	makefile
2013-02-07 11:38:57 +02:00
Victor Shcherb
ed94eafe16 Fix proguard warnings
Conflicts:

	TODO.if.merge
2013-02-07 11:38:56 +02:00
Victor Shcherb
ba80761128 Add android redirect to logcat 2013-02-07 11:38:55 +02:00
Victor Shcherb
8da990f593 Fix android makefile 2013-02-07 11:38:54 +02:00
Alexey Pelykh
62104e843c Path fix 2013-02-07 11:38:53 +02:00