Joshua Warner
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
Joshua Warner
99bc9b1d55
prettify SymbolInfo array
2012-05-03 10:13:55 -06:00
Joshua Warner
2fa7fa0e83
correct bootimage dependency chain
2012-05-03 10:13:55 -06:00
Joel Dice
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
Joshua Warner
b0dd39aa86
fix darwin arm binaryToObject support (just a missing break...)
2012-04-30 09:43:24 -06:00
Joshua Warner
661f6c28a8
refactor binaryToObject to allow more flexibilty (in particular, allowing arbitrary symbols per object)
2012-04-27 12:08:44 -06:00
Joshua Warner
ca9b5b2f59
move OutputStream to ObjectWriter constructor in binaryToObject
2012-04-25 09:13:14 -06:00
Joshua Warner
a9ba4782ef
improve build for binaryToObject
2012-04-25 09:13:04 -06:00
Joshua Warner
175db9ec54
allow streaming to more than just files in binaryToObject
2012-04-25 08:43:51 -06:00
Joshua Warner
9c308f751c
refactor binaryToObject, to better support (eventually) putting symbols for compiled code in objects
2012-04-24 16:17:52 -06:00
Joel Dice
ba1f8aa68e
don't fail build on missing iOS SDK unless actually building for iOS
2012-04-07 17:15:59 -06:00
Joel Dice
2fedfdea5b
fix OS X build regression
2012-04-06 16:52:24 -06:00
Joel Dice
2b4407a962
fix iOS build regression
2012-04-05 10:04:53 -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
Joel Dice
382f016415
remove debug logging
2012-03-26 18:12:58 -06:00
Joel Dice
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
Joel Dice
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
Vaughn Dice
5be0edd628
Use latest iOS SDK found on local machine
2012-03-26 11:28:07 -06:00
Joshua Warner
8e6f5ac6e3
add ZipEntry.isDirectory (trivial implementation)
2012-03-21 10:38:30 -06:00
Joel Dice
f2e26791a4
handle constant-to-register "zero-extend" moves in x86.cpp
...
We've already been handling this case in arm.cpp and powerpc.cpp, but
apparently we've never hit this code path in x86.cpp before. Indeed,
I've been unable to come up with a Java source code test that hits it;
it's only come up in Scala-generated bytecode.
2012-03-13 17:00:47 -06:00
Joel Dice
37044236d4
provide dummy implementation of JVM_GetThreadInterruptEvent
2012-03-13 10:31:08 -06:00
Joel Dice
58dc32382d
fix memory management bugs in finder.cpp
2012-03-13 10:30:41 -06:00
Joel Dice
756f58210a
add test for sun.misc.Unsafe functionality
2012-03-13 08:28:33 -06:00
Joel Dice
4aefa211a3
File.createNewFile should return false if the file already exists
2012-03-13 08:26:51 -06:00
Joel Dice
6cc0ddda7c
implement JVM_HoldsLock
2012-03-11 05:06:08 -06:00
Joel Dice
04a34a75ed
implement sun.misc.Unsafe.monitorEnter and monitorExit
2012-03-11 05:05:14 -06:00
Joel Dice
3e38628ad6
check superclasses in fieldForOffset, not just immediate class
2012-03-11 05:04:12 -06:00
Joel Dice
8590695f2d
constrain exception handler bounds to bytecode length
...
Scala occasionally generates exception handler tables with interval
bounds which fall outside the range of valid bytecode indexes, so we
must clamp them or risk out-of-bounds array accesses.
2012-03-11 05:00:08 -06:00
Joel Dice
71295e54c7
handle constants larger than 8 bits in subtractBorrowCR
2012-03-11 04:59:42 -06:00
Joel Dice
6c9a1e1643
add "throws IOException" to java.io.File.createTempFile
2012-03-11 04:57:22 -06:00
Joel Dice
443097f3bc
add support for Xcode 4.3
2012-03-07 08:55:01 -07:00
Joel Dice
e8e3c9066f
implement sun.misc.Unsafe raw memory access methods
...
The primitive get/put methods are implemented as intrinsics by the
compiler for performance.
2012-03-06 13:07:59 -07:00
Joel Dice
44277db2de
fix handling of exceptions thrown from interpreter during method invocation
...
Since we use Thread::code to store a reference to either the method to
be invoked or the current bytecode being executed depending on the
context, we must be careful to switch it back to the bytecode of the
exception handler if an exception is thrown while invoking a method
(e.g. an UnsatisfiedLinkError).
2012-03-06 13:03:42 -07:00
Joel Dice
ac63d08450
fix bootimage field offset calculation for derived classes
...
There was a subtle bug in that we were not considering alignment
padding for fields defined in superclasses when calculating field
offsets for a derived class when the superclass(es) were visited by
the bootimage generator before the derived class.
2012-03-04 11:38:12 -07:00
Joel Dice
1d77b06540
fix recent throwNew/makeThrowable regression
...
6fceca9
introduced a string formatting regression in these methods,
which this commit fixes.
2012-03-03 18:37:27 -07:00
Joel Dice
87032ca8a8
Merge remote-tracking branch 'git/master'
2012-03-02 16:33:50 -07:00
Matt Weaver
a7157199f3
armv7 is actually 9
2012-03-02 16:06:22 -07:00
Matt Weaver
6a20d0289c
switching to armv7
2012-03-02 16:00:08 -07:00
Joel Dice
5203cb5dcf
implement JNI methods NewWeakGlobalRef and DeleteWeakGlobalRef
2012-02-29 11:51:30 -07:00
Joel Dice
6fceca940f
fix makeByteArray and makeString for strings longer than 256 characters
2012-02-29 11:49:13 -07:00
Joel Dice
5a5d2a8dd2
fix JNI float argument passing
...
Floats are implicitly promoted to doubles when passed as part of a
variable-length argument list, so we can't treat them the same way as
32-bit integers.
2012-02-28 15:35:28 -07:00
Joel Dice
c6ac66e45a
fix bug in isAssignableFrom such that primitive array types were considered to be subclasses of the Object array type
2012-02-27 18:16:01 -07:00
Joel Dice
b5fda8ee13
use avian.http.Handler for http(s) URLs, not avian.file.Handler
2012-02-27 13:38:47 -07:00
Joel Dice
574a8ea1e2
Merge branch 'master' into prv-ga-merge
2012-02-27 13:28:06 -07:00
Joel Dice
d09eb3c671
Merge remote branch 'oss/master'
2012-02-22 10:08:14 -07:00
Seth Goings
e849d8f9c9
Updates to .gitignore to get rid of any possibility of checking in binaries in lib/distrib directories, and generalized method of setting location of win32 and win64 libs.
2012-02-20 16:25:37 -07:00
Joel Dice
750e5f903c
include leading slash in path when parsing URLs in URLStreamHandler
...
This matches the behavior of OpenJDK's version.
2012-02-18 15:14:16 -07:00
Joel Dice
999e90c332
fix MSVC build
2012-02-16 18:22:11 -07:00