Joel Dice
51fcf1ef74
ammend recent commit to avoid using __attribute__ ((externally_visible)) when it is not available
2009-10-27 09:34:46 -06:00
Joel Dice
2efff818ea
Merge commit 'origin/master' into wip
2009-10-27 09:17:54 -06:00
Joel Dice
4570b86da0
add __attribute__ ((externally_visible)) to EXPORT macros to facilitate whole-program optimization using GCC 4.5
2009-10-27 09:16:08 -06:00
Joel Dice
c8d5c1faed
visit all frame locations in resolveOriginalSites
...
Previously, we only visited frame locations containing values, but
this invited the possibility of reusing the same site for two
locations in some cases.
2009-10-26 17:59:20 -06:00
Joel Dice
3b4be3decd
defer to helper thunk for frem and drem
2009-10-24 19:29:20 -06:00
Joel Dice
95c3f37bfb
fix various bugs involving doubles on 32-bit systems
2009-10-24 17:18:56 -06:00
Joel Dice
064ad572bc
use truncation, not rounding in float2Int instructions
2009-10-20 15:43:24 -06:00
Joel Dice
f27ecaa199
fix memcpy argument order in Avian_avian_Singleton_getLong
2009-10-20 13:38:05 -06:00
Joel Dice
e06f0407cb
fix powerpc bootimage build (second try)
2009-10-20 09:06:52 -06:00
Joel Dice
c044781807
fix powerpc bootimage build
2009-10-20 08:20:49 -06:00
Joel Dice
984f3106fd
fix powerpc build
2009-10-19 10:31:34 -06:00
Joel Dice
1a63b72b41
clean up float-vs.-int tracking in constant pools
2009-10-17 20:11:03 -06:00
Joel Dice
15020d77a6
refactor intrinsic support
...
This ensures that the low-level, architecture specific code need not
be aware of the semantics and names of Java methods.
2009-10-17 19:26:14 -06:00
Joel Dice
f702795178
fix integer truncation bug
2009-10-17 18:35:19 -06:00
Joel Dice
cec6444911
fix bootimage build for case where the JIT code area is too far from the AOT code area to do immediate-offset jumps between them
2009-10-17 18:18:03 -06:00
Joel Dice
963bfb3e3f
avoid array bounds warnings from GCC 4.3
...
These warnings are due to GCC being smart enough to do interprocedural
constant propagation but not smart enough to avoid false positives in
all cases when looking for array bounds errors.
2009-10-17 18:09:54 -06:00
Joel Dice
7b0378c180
support darwin/x86_64
2009-10-14 10:01:37 -06:00
Joel Dice
ef4a8430ad
add binaryToObject utility
...
We use this utility instead of objcopy to embed data into object files
because it offers more control over e.g. section alignment, which is
important for bootimage builds.
2009-10-13 19:00:16 -06:00
Joel Dice
87950e86b8
add missing parameter to native SystemClassLoader methods
2009-10-13 18:42:49 -06:00
Joel Dice
9fcdfaf7ff
implement binaryToElf utility and use it instead of objcopy on Linux
...
This is necessary because objcopy does not currently allow us to
specify the alignment requirement for the .boot section used to store
the boot image for AOT builds. This may be a problem for Windows as
well, in which case we'll need to add a binaryToPE utility.
2009-10-11 16:09:23 -06:00
Joel Dice
c65b106112
whitespace tweak in binaryToMacho.cpp
2009-10-11 16:06:09 -06:00
Joel Dice
b878b84d32
set DebugCompile to false in compile.cpp
2009-10-11 16:05:37 -06:00
Joel Dice
b4c1c6badf
fix process=interpret build
2009-10-10 18:23:14 -06:00
Joel Dice
44a6620aa1
disable use of SSE when compiling ahead-of-time
2009-10-10 17:46:43 -06:00
Joel Dice
38bf29300f
enable SSE<->GPR moves when size matches word size
2009-10-10 22:27:35 +00:00
Joel Dice
78d9e51b7e
replace hasMoreThanOneSite with uniqueSite; rename Value fields
...
uniqueSite also checks, if applicable, to see if the second word of a
value shares the specified site with the first value as its sole site.
Also renamed a couple of fields in Value for clarity.
2009-10-10 16:07:30 -06:00
Joel Dice
622b3d1c4e
replace compare and branch instructions with combined versions
...
This allows the assembler to see the operand types of the comparison
and the condition for jumping in the same operation, which is
essential for generating efficient code in cases such as
multiple-precision compare-and-branch.
2009-10-10 15:03:23 -06:00
Joel Dice
609a1a9633
snapshot
2009-10-07 00:50:32 +00:00
Joel Dice
23197da679
fix handling of subroutines in methods of return type long on 32-bit systems
2009-10-06 03:17:12 +00:00
Joel Dice
4f78783ef1
various bugfixes for SSE-based floating-point support
2009-10-05 14:25:12 +00:00
Joel Dice
d25da6116a
snapshot
2009-10-04 22:10:36 +00:00
Joel Dice
5dad9bddd6
snapshot
2009-10-04 19:56:48 +00:00
Joel Dice
6cef085d7e
snapshot
2009-09-26 19:43:44 +00:00
Joel Dice
325f93b4d1
Merge branch 'master' into wip
...
Conflicts:
src/compile.cpp
src/compiler.cpp
src/machine.h
src/x86.cpp
2009-09-20 15:43:32 -06:00
Joel Dice
953cb69e5e
move proxy and annotation code from C++ to Java
...
This allows code shrinkers to remove it if it's not used by the application.
2009-09-19 16:21:15 -06:00
Joel Dice
1a2eb3836c
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
2009-09-18 18:01:57 -06:00
Joel Dice
7aa906d97b
support runtime-visible annotations and java.lang.reflect.Proxy
2009-09-18 18:01:54 -06:00
Joel Dice
d0f8889e27
fix GC safety bugs in parseMethodTable and makeArrayClass
2009-09-18 12:20:35 -06:00
Joel Dice
b645c284b5
fix memory leak in debug build
2009-09-17 21:36:52 -06:00
Joel Dice
fcc4ff93e0
remove debug logging
2009-09-17 21:22:47 -06:00
Joel Dice
1dfa421a6c
fix argument mixup in Runtime.exit
2009-09-17 18:28:42 -06:00
Joel Dice
bf2b17cfa6
fix misspelled comment
2009-09-04 17:08:45 -06:00
Joel Dice
b0ba70866e
fix incorrect line numbers in NPE traces
2009-09-04 15:09:40 -06:00
Joel Dice
e47c149fb1
fix misuse of FindFirstFile
2009-09-03 17:57:32 -06:00
Joel Dice
6519047342
fix bootimage build
2009-09-03 09:06:04 -06:00
Joel Dice
84ac2e417d
follow reference pointer before using in in refrenceTargetUnreachable in case it points to a moved object
2009-09-01 18:32:21 -06:00
Joel Dice
6aff383ee1
ensure Heap::needsMark and Heap::mark work correctly during GC
2009-09-01 18:31:18 -06:00
Joel Dice
4f794f533e
fix handling of reachable, moved weak references in postVisit
2009-09-01 17:23:30 -06:00
Joel Dice
49005f0746
fix name-clash regression in heapdump.cpp
2009-09-01 13:09:53 -06:00
Joel Dice
27f35bf239
fix heapdump build
2009-09-01 12:15:33 -06:00
Joel Dice
73dc058c14
implement StackTraceElement.getFileName properly
2009-08-27 16:28:44 -06:00
Joel Dice
1a0eef7e2d
add support for building with MSVC on Windows
2009-08-26 18:26:44 -06:00
Joel Dice
4297fa04b3
run java finalizers in a separate thread to guarantee no application locks are held when doing so
2009-08-24 17:51:31 -06:00
Joel Dice
4536f13ee4
superficial reformatting of previous commit
2009-08-21 09:44:18 -06:00
Joel Dice
637a676fb0
fix MinGW 3.4 build
2009-08-21 09:37:49 -06:00
Joel Dice
a56c1d8765
fix GC-safety bug in resolveSpec
2009-08-20 12:37:03 -06:00
Joel Dice
6196f61938
clear Thread::javaThread before entering zombie state, since clearing it in Thread::dispose is too late - the reference may already be invalid since we don't visit GC roots for zombie threads
2009-08-20 08:49:01 -06:00
Joel Dice
c4b5ecec90
implement Runtime.addShutdownHook and Thread.setDaemon; avoid segfaults due to an application calling e.g. CallStaticBooleanMethod when it really meant CallStaticVoidMethod
2009-08-19 14:27:03 -06:00
Joel Dice
df3baeb83b
handle null value properly in SetObjectArrayElement
2009-08-19 07:36:52 -06:00
Joel Dice
0a2e611baa
handle case of null thread local in SegFaultHandler::handleSignal
2009-08-18 15:47:08 -06:00
Joel Dice
0eba1eeaf2
leave thread in JoinedState instead of ZombieState in DetachCurrentThread
2009-08-18 15:29:25 -06:00
Joel Dice
01dcb1661b
don't resolve all constant pool entries in linkClass - just the field and method specs
2009-08-18 15:27:21 -06:00
Joel Dice
6449c8275a
fix process=interpret build
2009-08-18 14:41:21 -06:00
Joel Dice
c4edabdc02
implement ClassLoader.resolveClass and ensure class is linked in e.g. Class.getMethods; minor bugfixes
2009-08-18 14:26:28 -06:00
Joel Dice
dae0842c95
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
2009-08-17 13:10:36 -06:00
Joel Dice
062f6968a1
only emit a crash dump for access violations
2009-08-14 15:58:19 -06:00
Joel Dice
7fcbf9d85c
fix reading 2-byte UTF-8 constants
2009-08-14 08:52:31 -06:00
Joel Dice
3facd3f735
treat SoftReferences as WeakReferences; do vtable or interface table lookups as necessary in MyProcessor::invoke; various bugfixes
2009-08-13 09:17:05 -06:00
Joel Dice
b3a5823536
set JNIEnvVTable::NewWeakGlobalRef to NewGlobalRef since we don't yet have a weak version
2009-08-13 09:07:05 -06:00
Joel Dice
99e5e65bd8
implement sun.misc.Unsafe methods; set gnu.cpu.endian property
2009-08-13 09:05:37 -06:00
Joel Dice
42622d0d25
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
2009-08-12 19:41:05 -06:00
Joel Dice
bf48f1e297
set java.version property in Avian_gnu_classpath_VMSystemProperties_preInit; add empty Avian_java_lang_VMClassLoader_resolveClass implementation
2009-08-12 19:37:29 -06:00
Joel Dice
61cb8b3deb
handle zero-length lookup tables in lookupswitch
2009-08-12 19:32:12 -06:00
Joel Dice
bc884b4669
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
2009-08-11 18:50:04 -06:00
Joel Dice
22ae42b712
look for a native method implementation using the fast calling convention (Avian_*) before one using the standard convention (Java_*) to avoid false positives late in the search path
2009-08-11 18:49:58 -06:00
Josh warner
78ea4d20e3
added loneMatch to improve register allocation
2009-08-11 13:46:51 -06:00
Josh warner
f29199a285
fixed several operand type errors that appeared on 64-bit platforms
2009-08-11 13:30:31 -06:00
Josh warner
711680a183
fixed powerpc compile errors
2009-08-11 13:29:00 -06:00
Josh warner
cd59222f53
fixed propegation of result sizes
2009-08-11 13:27:25 -06:00
Josh warner
32167168f8
fixed incorrect opSize bug for 64-bit platforms
2009-08-11 13:25:22 -06:00
Joel Dice
535a152e86
Merge branch 'master' of ../avian-old
2009-08-11 12:42:14 -06:00
Joel Dice
935329d7cf
fix 32-bit shift case in unsignedShiftRightC
2009-08-11 12:36:25 -06:00
Joel Dice
db58097165
re-enable finalization
2009-08-11 10:04:41 -06:00
Joel Dice
24abc8acfe
Merge branch 'master' of ../avian
2009-08-11 09:43:29 -06:00
Joel Dice
83b0a217e0
disable debug trap
2009-08-11 09:40:54 -06:00
Joel Dice
a8b333fdc6
define LD and LX unconditionally for __x86_64__ since they should be the same for Windows and POSIX
2009-08-11 09:31:00 -06:00
Joel Dice
8ac06d8a47
initialize classloader map if necessary in Avian_java_lang_ClassLoader_defineClass
2009-08-11 09:25:35 -06:00
Joel Dice
336e822ba9
remove debug logging
2009-08-11 09:23:38 -06:00
Joel Dice
b1014b24f9
specify java.specification.version in Avian_gnu_classpath_VMSystemProperties_preInit
2009-08-11 09:21:26 -06:00
Joel Dice
fb5b0570c3
replace slashes with dots in class name before passing it to ClassLoader.loadClass
2009-08-11 09:20:49 -06:00
Joel Dice
28b5c46a0b
fix GC safety bug in makeNewGeneral
2009-08-10 17:35:44 -06:00
Josh warner
af4d82ef7e
Merge branch 'master' of git://oss.readytalk.com/avian
2009-08-10 13:42:57 -06:00
Josh warner
9910e310cb
fixed register reserve logic in pickTarget
2009-08-10 13:42:37 -06:00
Josh warner
1d3ef1fc43
Merge branch 'master' of git://oss.readytalk.com/avian, fixed problems that occured in broader testing
...
Conflicts:
src/compile.cpp
src/compiler.cpp
src/powerpc.cpp
src/x86.S
src/x86.cpp
2009-08-10 13:20:23 -06:00
Joel Dice
001000364d
add classloader parameter to functions which may directly or indirectly load classes; include methods inherited from interfaces (but not explicitly declared) in method tables and virtual tables of abstract classes
2009-08-10 07:56:16 -06:00
Joel Dice
54bb64cfb2
freeze sites for dead values in resolveOriginalSites
...
Previously, we simply removed the element from the sites array, but
this led to problems when the junction sites are shared among multiple
junctions such that the value at a given index is live at one junction
and dead at another.
2009-08-10 07:51:19 -06:00
Joel Dice
1a2deff97d
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
2009-08-09 14:43:53 -06:00
Joel Dice
2f864ebea5
fix LLD definition for MinGW 4.4
2009-08-07 16:28:47 -06:00
Joel Dice
2da6980eb5
print intptr_t's as pointers in compareIpToMethodBounds to avoid printf compatibility issues
2009-08-07 16:27:24 -06:00
Joel Dice
012d548bbb
fix sign extension from int to long on x86_64
2009-08-07 14:48:30 -06:00