Joel Dice
80d4385cb8
implement blocking mode for SocketChannel and ServerSocketChannel
2009-08-03 08:58:56 -06:00
jent
c2e9b3ed76
Commit to implement property os.arch for use in bug 8574
...
I had thought about using other means, ie using sysctl or utsname for
osx/linux....but this solution is more universal between OS's as well as
provided by the compiler, not via system operations
2009-07-28 10:16:27 -06:00
Joel Dice
30be3945ae
update copyright year in TreeMap.java
2009-07-27 07:55:28 -06:00
Joel Dice
d327f6ba5a
implement java.util.TreeMap
2009-07-25 15:41:43 -06:00
Joel Dice
08e9a99cb5
don't abort if pthread_kill fails in MySystem::visit
2009-07-24 19:03:33 -06:00
Joel Dice
29858a5299
implement Selector.selectNow() and select()
2009-07-23 13:08:41 -06:00
Joel Dice
77f1bddce2
Revert "add avian.commit system property"
...
This reverts commit ed5be83467
.
2009-07-22 10:45:38 -06:00
Joel Dice
ed5be83467
add avian.commit system property
2009-07-22 10:38:32 -06:00
Joel Dice
afdab27e02
backport GC safety fixes from gnu branch
2009-07-20 14:32:25 -06:00
Joel Dice
47ab980550
fix thread heap overflow corner case in allocate3
...
The previous code relied on the invalid assumption that the thread-local
heaps for all threads would have been cleared immediately following a
garbage collection. However, the last thing the garbage collection
function does is run finalizers which may allocate new objects. This
can lead allocate3 to call allocateSmall with a size which is too large
to accomodate, overflowing the heap.
The solution is to iterate until there really is enough room for the
original allocation request.
2009-07-17 19:37:46 -06:00
Joel Dice
3e4336eba4
rearrange finalization code in collect to avoid inifinite recursion when finalizer allocates memory
2009-07-17 09:29:24 -06:00
Joel Dice
9c9eb86b2f
fix deadlock in allocate3 when another thread wants to enter the exclusive state
2009-07-16 11:51:35 -06:00
Joel Dice
30c7107aa3
enable DebugAllocation in heap.cpp when NDEBUG is not defined
2009-07-10 08:42:56 -06:00
Joel Dice
22852dcffa
fix GC safety bug when walking stack
2009-07-10 08:33:38 -06:00
jent
8335dc4297
Now using the CoreServices instead of the Carbon framework....this
...
allows for cocoa and future compatability
2009-07-02 03:30:05 -06:00
jent
8c3d65a835
Hopefully including the top carbon header will fix the issues we had
...
when we tried to include just Gestalt.h
2009-07-02 03:13:39 -06:00
jent
2639d94ebc
Commented out changes to avian till I can figure out why I can compile
...
using the deploy script, but no one else can
2009-07-02 02:24:25 -06:00
jent
3367ac88e3
Added in code to support os.version for Windows/Linux/OSX
...
The make file had to be modified to include the carbon framework in OSX
2009-07-01 09:13:01 -06:00
Eric Scharff
f4347dee70
Implement dummy JNI GetVersion
2009-06-22 16:25:13 -06:00
Eric Scharff
c3c06e4e0e
Fix mac build
...
Remove a compiler error by removing an unnecessary method
2009-06-19 13:43:57 -06:00
Joel Dice
7ed14948b9
re-initialize frame maps for exception handlers on every iteration of the frame map calculation loop
...
This fixes incorrect frame map calcuation which may lead to crashes
during garbage collection from an exception handler.
2009-06-16 13:41:31 -06:00
Joel Dice
a21f951e29
consider an instruction reachable if it has no predecessors (i.e. it's the first instruction
2009-06-12 09:45:29 -06:00
Joel Dice
31976f585a
add DebugAllocation option to heap.cpp to help detect allocation and deallocation errors
2009-06-11 17:23:02 -06:00
Joel Dice
e1c7504eda
attempt to flush the compile log (if any) before crashing in SegFaultHandler::handle
2009-06-11 17:14:54 -06:00
Joel Dice
525318dabb
fix GC safety bug in builtin.cpp
2009-06-11 17:13:25 -06:00
Joel Dice
1d58541c87
generate full memory dump on unhandled exception in windows.cpp
2009-06-11 13:41:13 -06:00
Joel Dice
70bd2d908f
update readme.txt to reflect new bootimage-generator parameter
2009-06-01 12:51:20 -06:00
Joel Dice
a4d4db8eb4
fix cygwin/msys bootimage build
2009-06-01 12:12:29 -06:00
Joel Dice
2d2940b13e
add continuation classes and methods to vm.pro
2009-05-31 23:02:50 -06:00
Joel Dice
d4e977db28
update vm.pro to reflect new SystemClassLoader location
2009-05-31 22:48:38 -06:00
Joel Dice
11e61543a3
fix bootimage build
2009-05-31 21:16:58 -06:00
Joel Dice
0debcf0f16
document "tails" and "continuations" options in readme.txt
2009-05-31 18:31:15 -06:00
Joel Dice
049f96bd1c
Merge branch 'master' into fun
2009-05-31 17:25:34 -06:00
Joel Dice
c434f211e2
fix return type for Avian_java_lang_Object_hashCode
2009-05-31 17:19:18 -06:00
Joel Dice
ace985b390
fix native method lookup for fast calling convention on Windows
2009-05-31 14:41:07 -06:00
Joel Dice
01f302d4b5
give avian/Continuations a private constructor; documentation tweaks
2009-05-31 14:16:51 -06:00
Joel Dice
9d6a3021ca
make Hashtable.toString synchronized
2009-05-31 14:16:08 -06:00
Joel Dice
b1d92fc6c2
fix compilation of synchronized methods which return values
2009-05-31 14:15:45 -06:00
Joel Dice
f1ff0d75bf
avian.Continuations documentation tweaks
2009-05-29 19:09:32 -06:00
Joel Dice
b5cb1692fb
document avian.Continuations
2009-05-29 18:32:16 -06:00
Joel Dice
02fba10614
set DebugCompile to false
2009-05-28 19:56:15 -06:00
Joel Dice
f30e31e5f6
compile-x86.S bugfixes and cleanups
2009-05-28 19:54:32 -06:00
Joel Dice
14613193fa
include return address size in frameSize passed to vmInvoke; fix printf warnings
2009-05-28 19:50:44 -06:00
Joel Dice
2478d4fc7f
conditionally include continuation code in compile-x86.S
2009-05-28 19:13:15 -06:00
Joel Dice
b4dea1f71c
fix printf warnings in compiler.cpp
2009-05-28 19:12:26 -06:00
Joel Dice
d99f8df6e6
several bugfixes for powerpc continuations
2009-05-28 18:56:05 -06:00
Joel Dice
ca4e62cdb7
pass -DAVIAN_CONTINUATIONS to assembler when continuations enabled
2009-05-28 18:51:53 -06:00
Joel Dice
ec60b844d4
fix powerpc tail calls
2009-05-27 18:15:39 -06:00
Joel Dice
49a2c1846d
powerpc bugfixes
2009-05-26 19:30:11 -06:00
Joel Dice
2608a2ee43
progress towards powerpc continuation and tail call support
2009-05-26 19:02:39 -06:00