Commit Graph

3946 Commits

Author SHA1 Message Date
Joshua Warner
492294bfe6 Merge pull request #189 from jentfoo/interface_improvements
interface improvements and LockSupport implementation
2014-03-07 20:48:40 -07:00
Joshua Warner
f0fa06b3b7 Merge pull request #192 from dicej/inner-class-modifiers
match Java's schizophrenic concept of inner class access modifiers
2014-03-07 08:19:38 -07:00
Joel Dice
25d69f38ee match Java's schizophrenic concept of inner class access modifiers
An inner class has two sets of modifier flags: one is declared in the
usual place in the class file and the other is part of the
InnerClasses attribute.  Not only is that redundant, but they can
contradict, and the VM can't just pick one and roll with it.  Instead,
Class.getModifiers must return the InnerClasses version, whereas
reflection must check the top-level version.  So even if
Class.getModifiers says the class is protected, it might still be
public for the purpose of reflection depending on what the
InnerClasses attribute says.  Crazy?  Yes.
2014-03-06 16:17:43 -07:00
Ilya Mizus
7cac232bd4 Tools fixed 2014-03-06 18:35:20 +04:00
Ilya Mizus
57f50ca7ea Some small cleanup before pull request 2014-03-06 18:33:23 +04:00
Vasily Litvinov
24ba96192c Merge branch 'avian-droid' of https://github.com/bigfatbrowncat/avian into avian-droid 2014-03-05 03:03:07 +04:00
Vasily Litvinov
0982debca7 Got rid of __DISABLE_IPV6_PROTO macro 2014-03-05 03:02:48 +04:00
Ilya Mizus
33a48afd17 NativeCrypto is back for non-Windows platforms 2014-03-05 01:33:41 +04:00
Mike Jensen
d94fc8f009 Fix for travis build failure for needing to initialize the new field in Thread. 2014-03-04 11:21:14 -07:00
Mike Jensen
d5e3acd7a5 Add parkBlocker variable to Thread.java 2014-03-03 16:45:28 -07:00
Mike Jensen
7dd799476a Interfaces and the foundation for a ReentrantLock implementation 2014-03-03 16:04:56 -07:00
Mike Jensen
b5dd74c3d8 Adds the Deque interface, and allows LinkedList to implement that interface.
This also changes ConcurrentLinkedQueue to implement the Queue interface, and just throw exceptions for operations which are not currently implemented.
2014-03-03 16:02:12 -07:00
Joshua Warner
6ed98b85f8 Merge pull request #188 from dicej/volatile
move Unsafe.get{Object|Int}Volatile from classpath-openjdk.cpp to builti...
2014-03-03 15:32:57 -07:00
Joel Dice
0a89683eff move Unsafe.get{Object|Int}Volatile from classpath-openjdk.cpp to builtin.cpp
This makes them available in all class libraries, not just the OpenJDK
library.  Note that I've also removed the unecessary idle statements,
per ab4adef.
2014-03-03 14:55:49 -07:00
Vasily Litvinov
6ae149809f Enabled "FIXME_STUB" macro 2014-03-04 00:41:58 +04:00
Ilya Mizus
301fb1ae13 Refactoring 2014-02-28 11:18:48 +04:00
Joel Dice
1cd822b23e Merge pull request #180 from joshuawarner32/move-allocator
Move allocator & Slice into util
2014-02-27 08:55:24 -07:00
Ilya Mizus
6df337b0c4 Added errno descriptions for Android classpath on Windows 2014-02-27 01:56:17 +03:00
Joshua Warner
e837502d43 Merge pull request #184 from dicej/zip-available
remove redundant decrement in ZipFile.getInputStream inner class
2014-02-26 15:55:48 -07:00
Joel Dice
2036eeaaa6 Merge pull request #182 from joshuawarner32/ffi-split
split out ffi::call from System
2014-02-26 15:46:05 -07:00
Joshua Warner
e6eead07fa call vm::dynamicCall directly, instead of through System 2014-02-26 15:10:41 -07:00
Joel Dice
094af1e794 remove redundant decrement in ZipFile.getInputStream inner class
We were decrementing the "remaining" field twice for each byte read
using the no-arg read method, which resulted in available() returning
a value that was too small.
2014-02-26 14:48:28 -07:00
Joshua Warner
53816970ea Merge pull request #183 from dicej/codesource
move OpenJDK.getProtectionDomain into Classes.java
2014-02-26 14:47:02 -07:00
Joel Dice
0c298eb513 move OpenJDK.getProtectionDomain into Classes.java
This way, apps can access the CodeSource of a class whether they're
using the OpenJDK class library or the Avian one.
2014-02-26 14:09:42 -07:00
Vasily Litvinov
63a691f41d Adding a define to tell Android Classpath to disable IPv6, removing -fPIC on Windows as it's useless there and generates warnings 2014-02-26 19:41:55 +04:00
Joshua Warner
deca71da52 build arm and powerpc targets in the ci build 2014-02-25 21:38:29 -07:00
Joshua Warner
2ac9070399 fix arm/powerpc build 2014-02-25 21:33:08 -07:00
Joshua Warner
db19c7b3a2 add Slice::resize and Slice::alloc 2014-02-25 20:34:03 -07:00
Joshua Warner
892d359ba0 use size_t for Vector::minimumCapacity 2014-02-25 20:34:03 -07:00
Joshua Warner
b711aef1b3 use Slice in Vector 2014-02-25 20:34:03 -07:00
Joshua Warner
a807966143 use Slice<uint8_t> in FixedAllocator 2014-02-25 20:34:03 -07:00
Joshua Warner
b083f3df04 move fixed allocator out of machine.h 2014-02-25 20:34:03 -07:00
Joshua Warner
f69f86b487 move Slice out of object-writer, to be more general 2014-02-25 20:34:03 -07:00
Joshua Warner
52b23b8a6a move Allocator to include, properly namespaced 2014-02-25 19:13:41 -07:00
Vasily Litvinov
e217a4faf8 Removing workaround for Enum.java, fixing the root cause of the issue 2014-02-26 03:35:05 +04:00
Vasily Litvinov
a2ff617f1e Adding a workaround for read-only Enum.java during build 2014-02-26 03:24:10 +04:00
Vasily Litvinov
4184c8313a Adding Eclipse workspace to .gitignore 2014-02-26 02:35:54 +04:00
Ilya Mizus
2eaeaa2b12 Merge remote-tracking branch 'refs/remotes/ReadyTalk/master' into avian-droid 2014-02-26 01:27:32 +03:00
Joshua Warner
d95a8a9626 Merge pull request #179 from dicej/android-thread-join
fix Thread.join when using Android class library
2014-02-25 15:20:21 -07:00
Joel Dice
1445835c4f fix Thread.join when using Android class library
Android's Thread.join expects the VM to null-out Thread.vmThread when
the thread exits.  Otherwise, it will block forever.
2014-02-25 14:58:32 -07:00
Joel Dice
3912f2c0e4 Merge pull request #171 from joshuawarner32/master
Flatten "vm" dir and split signal handling out of vm::System
2014-02-25 14:11:09 -07:00
Joshua Warner
2b17ba7766 Merge pull request #177 from dicej/VMSupportsCS8
add Avian_java_util_concurrent_atomic_AtomicLong_VMSupportsCS8
2014-02-24 14:21:51 -07:00
Joel Dice
c021329d0d add Avian_java_util_concurrent_atomic_AtomicLong_VMSupportsCS8
Android's class library uses this to find out whether the VM supports
compareAndSwapLong natively.  Avian does on all platforms, so we just
return true.
2014-02-24 14:16:40 -07:00
Joel Dice
3ce78cf8c1 Merge pull request #176 from joshuawarner32/shift-32-bit-regression
fix #172, regression in compiling shift operations
2014-02-24 13:55:26 -07:00
Joshua Warner
f1806ce90e fix #172, regression in compiling shift operations 2014-02-24 13:24:14 -07:00
Joshua Warner
aec8bfc308 Merge pull request #174 from dicej/lIphlpapi
add "-lIphlpapi" to embedding example link command
2014-02-24 12:00:13 -07:00
Joel Dice
2689ec79a3 add "-lIphlpapi" to embedding example link command
This is needed to allow the link to succeed when doing an openjdk-src
build on Windows.
2014-02-24 08:37:42 -07:00
Joshua Warner
3bd00f19bc fix remote-test functionality for windows 2014-02-22 15:35:12 -07:00
Joshua Warner
bc9f7d2f87 refactor SignalRegistrar interface 2014-02-21 23:37:32 -07:00
Joshua Warner
ca7d51edb3 add crash function to match the semantics of System::abort 2014-02-21 23:37:28 -07:00