Commit Graph

869 Commits

Author SHA1 Message Date
ccbb4796f2 fix typo in JavaDoc comment 2009-12-05 22:49:23 -07:00
0c85fc7527 throw OutOfMemoryError if malloc returns null pointer 2009-12-05 15:51:12 -07:00
112e2a71d5 update copyright years 2009-12-05 15:50:23 -07:00
99a1c12682 Files to add Deflater and DeflaterOutputStream to java.util.zip for
avian
2009-12-04 12:01:31 -07:00
6118792ffd update copyright years 2009-12-02 19:08:29 -07:00
f39469e71c Changes for better memory managment 2009-12-01 09:54:36 -07:00
6475beda83 don't null out array in HashMap when size drops to zero
As in ArrayList, we want to avoid thrashing in cases where the map is frequently emptied and refilled.
2009-11-19 12:55:53 -07:00
adcac443e4 don't null out array in ArrayList when size goes to zero
This avoids thrashing in the case of a list which is frequently
emptied and refilled with a small number of elements.
2009-11-19 11:43:11 -07:00
3862128a3a tolerate EINTR in ServerSocketChannel.accept implementation
On POSIX systems, Avian sends a special signal to a thread to
implement Thread.getStackTrace() when called from a different thread.
If the target thread is blocked on a call to accept when this happens,
it will return -1, with errno set to EINTR.  Instead of treating this
as an error, we now just loop and call accept again.
2009-11-16 17:23:09 -07:00
ef00ff80ef avoid EAGAIN or EWOULDBLOCK errors due to SocketSelector.wakup being called many times between calls to select 2009-10-30 08:55:55 -06:00
efdfb796d9 implement SocketChannel.isConnected 2009-10-29 16:19:33 -06:00
3c893b2ee3 Merge commit 'origin/master' into wip 2009-10-27 10:36:19 -06:00
1fd00dd55d revert all __attribute__ ((externally_visible)) changes because it's not clear yet how to detect whether it's supported 2009-10-27 10:35:26 -06:00
8bf3487ff1 Merge commit 'origin/master' into wip 2009-10-27 09:35:13 -06:00
51fcf1ef74 ammend recent commit to avoid using __attribute__ ((externally_visible)) when it is not available 2009-10-27 09:34:46 -06:00
2efff818ea Merge commit 'origin/master' into wip 2009-10-27 09:17:54 -06:00
b15ff58542 provide a useful error message when throwing IOExceptions from Java_java_nio_channels_SocketChannel_natFinishConnect 2009-10-27 09:17:08 -06:00
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
a68742200b return empty stack trace for thread which isn't running 2009-10-26 11:44:29 -06:00
5967246b37 Merge commit 'origin/master' into wip 2009-10-20 14:15:35 -06:00
53588b94f3 compare lengths first in String.equals[IgnoreCase] for efficiency 2009-10-19 10:36:48 -06:00
984f3106fd fix powerpc build 2009-10-19 10:31:34 -06:00
7b0378c180 support darwin/x86_64 2009-10-14 10:01:37 -06:00
1b893c7a19 check for EINPROGRESS in Java_java_nio_channels_SocketChannel_natFinishConnect 2009-10-12 09:28:04 -06:00
59ba4aecf2 implement non-blocking socket connections 2009-10-08 16:26:20 -06:00
77fb0083a4 updated nio native code to properly check for PIPE closure on POSIX OSes 2009-10-05 09:23:53 -06:00
447741d6ec implement java.io.File.renameTo 2009-09-28 17:45:47 -06:00
fb40b046fd fix regression in SocketSelector when selecting ServerSocketChannels 2009-09-28 16:54:49 -06:00
1faf93c163 fix typo in Proxy.makeInvokeCode 2009-09-19 16:27:28 -06:00
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
1a2eb3836c Merge branch 'master' of oss.readytalk.com:/var/local/git/avian 2009-09-18 18:01:57 -06:00
7aa906d97b support runtime-visible annotations and java.lang.reflect.Proxy 2009-09-18 18:01:54 -06:00
6fa25f992c Properties.setProperty should return an Object 2009-09-18 17:51:05 -06:00
3446ed0fce fix MSVC build regression in java-io.cpp 2009-09-05 15:35:00 -06:00
e47c149fb1 fix misuse of FindFirstFile 2009-09-03 17:57:32 -06:00
0a96f4c552 ensure WeakHashMap.MyCell objects are registered with the ReferenceQueue 2009-09-01 17:22:31 -06:00
987330fed5 Merge branch 'master' of oss.readytalk.com:/var/local/git/avian 2009-08-28 16:18:36 -06:00
cd41751912 ensure primitive names are zero-terminated in Class.getName 2009-08-28 16:17:23 -06:00
73dc058c14 implement StackTraceElement.getFileName properly 2009-08-27 16:28:44 -06:00
1a0eef7e2d add support for building with MSVC on Windows 2009-08-26 18:26:44 -06:00
d4e2e05b31 add AccessControlException 2009-08-24 16:40:25 -06:00
77ae259e41 throw ClassCastException if asked to compare Enums of different types 2009-08-21 16:06:12 -06:00
c14bb5768e throw FileNotFoundException from doOpen when appropriate 2009-08-21 09:23:03 -06:00
4c14a9ab66 implement enough of java.util.regex to ensure String methods work for trivial regular expressions 2009-08-20 11:14:05 -06:00
71f1efc4cb add a couple of StringBuffer.append overloads 2009-08-20 08:59:22 -06:00
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
c4edabdc02 implement ClassLoader.resolveClass and ensure class is linked in e.g. Class.getMethods; minor bugfixes 2009-08-18 14:26:28 -06:00
6d54b6cec8 add classes which I meant to add in earlier commits 2009-08-14 08:51:10 -06:00
9553d56977 add AccessibleObject.setAccessible(AccessibleObject[],boolean) 2009-08-13 09:03:44 -06:00
f96fa82607 add methods to Throwable 2009-08-13 09:03:04 -06:00