Commit Graph

2947 Commits

Author SHA1 Message Date
53225edbfe remove debug logging 2012-05-03 10:13:56 -06:00
5724baad41 free symbol names after writing codeimage 2012-05-03 10:13:56 -06:00
a09736e749 write java symbols to bootimage 2012-05-03 10:13:56 -06:00
b742c58055 directly emit codeimage as a object (binaryToObject is statically linked in), as a stepping stone to including extra symbols in said codeimage 2012-05-03 10:13:55 -06:00
99bc9b1d55 prettify SymbolInfo array 2012-05-03 10:13:55 -06:00
2fa7fa0e83 correct bootimage dependency chain 2012-05-03 10:13:55 -06:00
2107a09623 fix incorrect argument marshalling in Unsafe.{allocate|free}Memory
This was causing UnsafeTest to crash on PowerPC.
2012-05-02 18:02:28 -06:00
cab1a675af Merge branch 'jdk7' of oss.readytalk.com:/var/local/git/avian into jdk7 2012-05-02 11:54:02 -06:00
20a0823a74 Merge remote-tracking branch 'origin/master' into jdk7 2012-05-02 11:44:24 -06:00
e6afc6c321 set Thread.interrupted to true if thread is interrupted outside wait or sleep
This is the correct behavior according to the Thread.interrupt
JavaDoc, and it fixes an intermittent hang on exit in Eclipse.
2012-05-02 11:41:36 -06:00
b0dd39aa86 fix darwin arm binaryToObject support (just a missing break...) 2012-04-30 09:43:24 -06:00
577df3cb04 Merge branch 'jdk7' of oss.readytalk.com:/var/local/git/avian into jdk7 2012-04-29 13:20:22 -06:00
661f6c28a8 refactor binaryToObject to allow more flexibilty (in particular, allowing arbitrary symbols per object) 2012-04-27 12:08:44 -06:00
deeb3c694c interpret time of zero as infinity when isAbsolute is false in Unsafe.park
This behavior is not covered in the documentation, but
LockSupport.park clearly relies on it.
2012-04-25 17:47:07 -06:00
ca9b5b2f59 move OutputStream to ObjectWriter constructor in binaryToObject 2012-04-25 09:13:14 -06:00
a9ba4782ef improve build for binaryToObject 2012-04-25 09:13:04 -06:00
175db9ec54 allow streaming to more than just files in binaryToObject 2012-04-25 08:43:51 -06:00
9c308f751c refactor binaryToObject, to better support (eventually) putting symbols for compiled code in objects 2012-04-24 16:17:52 -06:00
07f330967f update readme.txt based on recent feedback from the mailing list
This clarifies the need to include both openjdk.pro and vm.pro when
building with OpenJDK and ProGuard.  It also makes
-dontusemixedcaseclassnames the default in the ProGuard command and
gives different names to the C++ files used in the embedding and
bootimage examples to avoid confusion.
2012-04-20 16:05:04 -06:00
01aa1e2bfd add note to readme.txt about using ProGuard with an OpenJDK build 2012-04-11 11:29:10 -06:00
1120d8f91d fix ProGuarded openjdk-src build
This makes a simple "hello, world!" app work, at least.  Further
changes may be needed for more sophisticated apps.
2012-04-10 08:18:52 -06:00
616c08fee9 Merge remote branch 'oss/master' into jdk7
Conflicts:
	makefile
2012-04-10 07:53:00 -06:00
ba1f8aa68e don't fail build on missing iOS SDK unless actually building for iOS 2012-04-07 17:15:59 -06:00
2fedfdea5b fix OS X build regression 2012-04-06 16:52:24 -06:00
2b4407a962 fix iOS build regression 2012-04-05 10:04:53 -06:00
8742ae1bde Merge branch 'jdk7' of oss.readytalk.com:/var/local/git/avian into jdk7 2012-04-05 09:51:52 -06:00
JET
6323c76540 added space before ';' in empty for loop to make Apple happy 2012-04-04 13:13:06 -06:00
JET
57092ece0d fixed Win32 getenv implementation 2012-04-03 10:38:48 -06:00
JET
2f225795fc added RuntimePermission and System.getenv() 2012-04-02 22:15:02 -06:00
JET
9b1b07bd88 Debugging VFP support on ARM. 2012-04-02 12:55:23 -06:00
ae2b58ee40 increase bootimage.cpp heap and code size limits
OpenJDK is huge, so building a bootimage out of the whole thing (as
opposed to an app shrunk using ProGuard) requires a lot of space.
Note that we still can't handle this on ARM or PowerPC due to a
limitation in the compiler, but we don't expect people to ship
binaries with the entire OpenJDK class library anyway, so it shouldn't
be a problem in practice.
2012-03-27 18:14:29 -06:00
48bb1e4f41 include charsets.jar in openjdk-src build
The other JARs we were including refer to classes in this jar, so we
need to include it as well.
2012-03-27 17:58:52 -06:00
a2e0151728 initialize Machine::OutOfMemoryError in writeBootImage2
If we don't initialize that at our first opportunity, it's possible
we'll run out of memory later and exit silently instead of printing
the error and returning a nonzero exit code.
2012-03-27 17:57:11 -06:00
4800518a31 fix bootimage.cpp build regression
I forgot to update bootimage.cpp when I added a parameter to Machine's
constructor in d78247a.
2012-03-27 08:22:35 -06:00
382f016415 remove debug logging 2012-03-26 18:12:58 -06:00
994098baf1 make find[Field|Method]InClass non-inline functions
It seems that GCC 4.6.1 gets confused at LTO time when we take the
address of inline functions, so I'm switching them to non-inline
linkage to make it happy.
2012-03-26 18:09:35 -06:00
1be6fe6f15 add -march=i586 to lflags as well as cflags where appropriate
When link time optimization is enabled, we need to remind the compiler
that we're targeting i586 when linking so it can resolve atomic
operations like __sync_bool_compare_and_swap.
2012-03-26 18:09:35 -06:00
2ee3771125 make find[Field|Method]InClass non-inline functions
It seems that GCC 4.6.1 gets confused at LTO time when we take the
address of inline functions, so I'm switching them to non-inline
linkage to make it happy.
2012-03-26 18:06:16 -06:00
031852daec add -march=i586 to lflags as well as cflags where appropriate
When link time optimization is enabled, we need to remind the compiler
that we're targeting i586 when linking so it can resolve atomic
operations like __sync_bool_compare_and_swap.
2012-03-26 18:02:43 -06:00
5be0edd628 Use latest iOS SDK found on local machine 2012-03-26 11:28:07 -06:00
a10ce99302 Use latest iOS SDK found on local machine 2012-03-26 11:23:31 -06:00
97ebf2173c Merge remote-tracking branch 'origin/master' into jdk7 2012-03-22 17:00:45 -06:00
836ef7437c add ZipEntry.isDirectory (trivial implementation) 2012-03-21 10:44:36 -06:00
8e6f5ac6e3 add ZipEntry.isDirectory (trivial implementation) 2012-03-21 10:38:30 -06:00
4f0d275e13 run JNI_OnLoad if found in ClassLoader.loadLibrary 2012-03-18 20:10:42 -06:00
674c560494 fix static field alignment calculation
The previous code caused overlap between 64-bit fields and subsequent
fields under certain circumstances on 32-bit systems.
2012-03-17 22:45:35 -06:00
9a50e69587 remove debug logging 2012-03-17 22:42:15 -06:00
0167868797 various Windows OpenJDK 7 fixes 2012-03-17 18:47:22 -06:00
75b5d3df4a fix Windows OpenJDK 7 build 2012-03-17 12:59:22 -06:00
8abe9bf469 fix memory leak in freeZipFileEntry 2012-03-17 12:58:41 -06:00