Commit Graph

3966 Commits

Author SHA1 Message Date
Joshua Warner
5beb148df3 Merge pull request #239 from dicej/misc
fix Misc test failures
2014-04-21 19:50:52 -06:00
Joel Dice
4c3e0f3421 Merge pull request #238 from pcarrier/PsPN
CP: Properties.stringPropertyNames()
2014-04-20 19:24:10 -06:00
Joel Dice
1ed3de08fa fix Misc test failures
The Misc test was failing when run as "make input=Misc run" since
test-flags did not include $(build)/extra-dir in the class library,
leading the ClassLoader.getResources test to fail.

Also, the UnknownHostException test was not reliable -- some ISPs
(mine included) return DNS matches for bogus hostnames, defaulting to
the IP address of a webserver intended to help users with name
resolution problems.  That's dumb, I know, but I'm guessing I'm not
the only person with a dumb ISP, and it seems better to just remove
the test than make people think Avian is broken when it's really just
their DNS server that's broken.
2014-04-20 19:11:15 -06:00
Mike Jensen
1a8d557c72 Merge pull request #237 from pcarrier/sb
CP: StringBuilder.append(char[])
2014-04-20 08:04:47 -06:00
Pierre Carrier
91282a040f CP: StringBuilder.append(char[]) 2014-04-20 04:24:52 -07:00
Pierre Carrier
a36176baca CP: Properties.stringPropertyNames() 2014-04-20 04:24:14 -07:00
Joshua Warner
b01515ac84 Merge pull request #234 from dicej/field_getAnnotations
fix NPE in Field.getAnnotations
2014-04-17 15:18:07 -06:00
Joel Dice
b74f9e32e9 fix NPE in Field.getAnnotations 2014-04-17 13:16:21 -06:00
Joshua Warner
a6f0923678 Merge pull request #233 from jentfoo/RandomAccess_implements
Small change to make these two structures implement RandomAccess
2014-04-16 16:32:55 -06:00
Mike Jensen
7192b0081d Small change to make these two structures implement RandomAccess (as they should) 2014-04-16 14:33:32 -06:00
Joshua Warner
17f7754d2c Merge pull request #232 from dicej/readme
update "Quick Start" examples in README.md
2014-04-16 10:50:32 -06:00
Joel Dice
076cdc7cc8 update "Quick Start" examples in README.md
It's safer to assume developers are using x86_64 rather than x86_32
these days, and JAVA_HOME should be defined as
$(/usr/libexec/java_home) on OS X.
2014-04-16 08:36:21 -06:00
Joshua Warner
3cee8d1a5c Merge pull request #226 from dicej/android-bootimage
fix Android bootimage build
2014-04-13 13:22:37 -06:00
Joel Dice
a0d47c2f17 Merge pull request #230 from dscho/lastest-javadoc
Fix typo
2014-04-11 22:31:00 -06:00
Johannes Schindelin
5913dec6d7 Fix tyop
Let's not say 'lastest'. That would only confuse non-native speakears
such as yours truly.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2014-04-11 23:19:53 -05:00
Joshua Warner
2fff3a6e13 Merge pull request #229 from dicej/preBoot
fix broken Android build due to 617bd85
2014-04-11 21:54:34 -06:00
Joshua Warner
6a7ec612c3 Merge pull request #227 from dicej/flags
only define soname-flag and version-script-flag for openjdk builds
2014-04-11 21:45:42 -06:00
Joshua Warner
77dcb97bf0 Merge pull request #225 from dicej/javahome
fix incorrect EXPORT definition for Windows/x86_64 in boot-javahome.cpp
2014-04-11 21:40:38 -06:00
Joshua Warner
2c5208cb65 Merge pull request #228 from dicej/expect-executable
add expect call to ensure tryAllocateExecutable actually succeeds
2014-04-11 21:39:39 -06:00
Joel Dice
f21f11efd6 fix broken Android build due to 617bd85
617bd85 broke the Android build by creating an unresolvable
order-of-operations bug in classpath-android.cpp's
MyClasspath::preBoot method.

The problem is that, while JNIEnv::FindClass is supposed to initialize
the class that it finds, this causes JniConstants::init to indirectly
invoke native methods which are not registered until JNI_OnLoad is
called (which happens after JniConstants::init is called).  However,
if we call JNI_OnLoad first, that causes methods to be invoked which
rely on JniConstants::init having already been run.

I haven't checked to see how Dalvik handles this, but I don't see any
way around the problem besides disabling initialization by
JNIEnv::FindClass until the preBoot phase is complete.  Moreover, it's
dangerous to allow Java code to be invoked so early anyway, since the
VM is not yet fully initialized.
2014-04-11 19:56:52 -06:00
Joel Dice
1b8b27fb6b add expect call to ensure tryAllocateExecutable actually succeeds
For some reason, running Avian under the SVN version of Valgrind
caused mmap to fail, which caused tryAllocateExecutable to return a
null pointer, which led to a non-obvious crash later on.  Adding an
expect to check the result immediately will at least make it obvious
what went wrong.
2014-04-11 19:52:53 -06:00
Joel Dice
a71e75140e fix Android bootimage build
bb86500 was a step in the right direction, but there was a bug that
caused Type_pad fields to be inserted between every other field in for
a derived class when type-maps.cpp was generated, and this led to
miscompilation of e.g. Android's
java.lang.reflect.Constructor.getModifiers.
2014-04-11 19:48:06 -06:00
Joel Dice
e5ca66c305 only define soname-flag and version-script-flag for openjdk builds
These flags are only needed to ensure that libjvm.so can be used as a
drop-in replacement for OpenJDK's VM, and that only makes sense for
openjdk builds (without the openjdk-src option).  It didn't hurt
anything to define them unconditionally, but it was misleading.
2014-04-11 19:32:16 -06:00
Joel Dice
8f4ed4dd4f fix incorrect EXPORT definition for Windows/x86_64 in boot-javahome.cpp
We should define EXPORT to be __declspec(dllexport) on Windows
regardless of architecture, not just non-x86_64 arches.  This fixes
errors to to embedded JAVA_HOME files not being found in openjdk-src
builds, e.g. lib/currency.data.
2014-04-11 19:26:56 -06:00
Joshua Warner
f7614bf8a7 Merge pull request #224 from bigfatbrowncat/avian-pack
Properties don't work in some cases
2014-04-10 08:09:18 -06:00
Vasily Litvinov
74209edb7d Replacing strcpy with memcpy - should be slightly faster because we're forced to know strlen, so no need in byte-by-byte copying 2014-04-10 01:02:11 +04:00
Joshua Warner
23d1d7b07a Merge pull request #222 from elementalvoid/protect-gh-pages-token
Squash stdout/stderr in gh-pages push
2014-04-09 14:49:29 -06:00
Vasily Litvinov
647e22bf81 Fixed memory leak (which triggered asserts in tests) 2014-04-09 19:36:34 +04:00
Vasily Litvinov
5828ef1d46 Fixing property copying 2014-04-09 16:02:48 +04:00
Ilya Mizus
6e3b170393 Trying to solve the properties memory problem 2014-04-09 10:16:53 +04:00
Joshua Warner
92f63b662e Merge pull request #223 from dicej/findclass
initialize class in JNIEnv::FindClass
2014-04-08 16:32:08 -06:00
Joel Dice
617bd85578 initialize class in JNIEnv::FindClass
Although the JNI reference documentation does not mention it,
FindClass should initialize the class before it returns it.  That's
what HotSpot does, and that's what we have to do too.

In particular, OpenJDK's
Java_java_net_Inet6AddressImpl_lookupAllHostAddr relies on
Inet6Address's static initializer being run when it is resolved using
FindClass, or else it will crash.
2014-04-08 15:59:00 -06:00
Matt Klich
dabfd05236 Squash stdout/stderr in gh-pages push
Previously if there was a problem communicating to GitHub or if there was an issue with the GH_TOKEN the token would be displayed and stored in Travis. This update hides the token but still indicates the result for Travis.
2014-04-07 22:46:17 -06:00
Matt Klich
bade22ff49 Update GH_TOKEN correctly this time. 2014-04-07 22:29:16 -06:00
Joshua Warner
e017f3401d Merge pull request #221 from dicej/lto
disable LTO by default
2014-04-07 16:25:43 -06:00
Joel Dice
4ce7676b1a disable LTO by default
The -flto flag slows down linking dramatically without providing a
noticeable improvement in speed or size.  Rather than take the
build-time hit every time we rebuild, let's only do it when it's
explicitly requested.
2014-04-07 15:26:31 -06:00
Joshua Warner
e86fce28ec Merge pull request #220 from dicej/unsafe
fix some Unsafe bugs
2014-04-07 15:23:00 -06:00
Matt Klich
613fb30fdb Update GH_TOKEN for Travis CI 2014-04-07 14:57:45 -06:00
Joel Dice
ca4f2224d9 Merge pull request #217 from bigfatbrowncat/avian-pack
Some improvements for Android lib core support
2014-04-07 14:51:12 -06:00
Joel Dice
1d9bdf8382 fix some Unsafe bugs
* Unsafe.arrayIndexScale was always returning the native word size,
   due to a thinko on my part

 * Unsafe.getLongVolatile and putLongVolatile did not work for array
   elements on 32-bit systems
2014-04-07 14:41:42 -06:00
Doug Borg
74d91bb5e2 Merge pull request #219 from dicej/java6
fix Java 6 build
2014-04-07 13:21:12 -07:00
Joel Dice
d00debd250 fix Java 6 build
Java 6's javac is not as smart as Java 7's when it comes to calling
overloaded methods from an inner class, so we have to be more
explicit.
2014-04-07 14:05:54 -06:00
Vasily Litvinov
b40a0ef590 Fixing compile error 2014-04-07 23:29:23 +04:00
Vasily Litvinov
5dd25f04ef Ignoring requests to load native conscrypt_jni library - it's linked statically 2014-04-07 23:25:57 +04:00
Vasily Litvinov
11959d8ab3 Reversed applying patches to android libcore 2014-04-07 23:12:13 +04:00
Joshua Warner
233060e0c8 Merge pull request #218 from dicej/properties
clean up System.getProperties and related methods
2014-04-04 16:04:16 -06:00
Vasily Litvinov
f70ec251ce Fixing indentation 2014-04-05 01:19:52 +04:00
Vasily Litvinov
e55007297b Slight reformatting 2014-04-05 01:17:21 +04:00
Vasily Litvinov
84a102247d Fixing dos2unix call before patching (breaks on MacOS) 2014-04-05 01:16:10 +04:00
Joel Dice
8f4c0e78ce clean up System.getProperties and related methods
The behavior of Avian's versions of these methods was egregiously
non-standard, and there were problems with the Android implementations
as well.
2014-04-04 13:43:59 -06:00