jfrijters
c9df2ba937
Merged OpenJDK 7u6.
2012-08-31 11:24:27 +00:00
jfrijters
b8df431272
Implemented VM.isBooted() with respect to system property initialization to support 7u6 which depends on VM.isBooted() to figure out whether it is safe to query a system property in Hashtable (which is itself used during system property initialization, because java.util.Properties is a Hashtable subclass).
2012-08-30 08:56:24 +00:00
jfrijters
05b0aa6977
Pass a bogus field type to the Field objects constructed for the intrinsified unsafe field accessors to make Field.toString() return something instead of crashing.
2012-08-30 08:52:13 +00:00
jfrijters
af27fb805e
Use .NET Hashtable instead of Java HashSet to avoid initialization order issues.
2012-08-30 08:51:10 +00:00
jfrijters
d1b1a41aab
Whitespace changes to match up with 7u6.
2012-08-29 11:59:48 +00:00
jfrijters
f70ca066b6
Optimized String.valueOf(char).
2012-08-29 07:25:42 +00:00
jfrijters
01ae451f9f
Disable AppDomain.ProcessExit hook to run shutdown hooks when running on Mono to workaround https://bugzilla.xamarin.com/show_bug.cgi?id=5650
2012-06-15 14:50:24 +00:00
jfrijters
77c31774e6
First part of forked file merge of OpenJDK 7u4 changes.
2012-05-23 14:25:32 +00:00
jfrijters
502b1b0173
Prepare for forking.
2012-05-23 10:52:35 +00:00
jfrijters
e7432e8f2e
Integrated OpenJDK 7u4. Not all forked files have been merged yet, just the ones necessary to get things building.
2012-05-23 10:00:03 +00:00
jfrijters
d2dfb267cc
Updated system property that still referred to Sun Microsystems instead of Oracle Corporation.
2012-05-23 09:43:53 +00:00
smallsql
8492d64fe6
Move getThreads() to native code for reusing on other place. This is also more like the Java behavior.
2012-04-15 14:43:25 +00:00
jfrijters
b9229a609b
Intrinsified the unsafe.objectFieldOffset(XXX.class.getDeclaredField("xxx")) pattern to avoid expensive reflection field lookup in static initializers of common OpenJDK classes.
2012-02-23 11:51:07 +00:00
jfrijters
ded554f863
Workaround a problem in sun.util.locale.LocaleObjectCache that assumes that a SoftReference is always immediately enqueued when get() returns null. Now we actively enqueue the reference in get() when the reference was cleared by the GC (instead of waiting for the QueueWatcher to eventually enqueue the reference from the finalizer).
2012-02-21 14:29:36 +00:00
jfrijters
36de825458
Relax class name validation for trusted class loaders.
2011-11-28 08:14:13 +00:00
jfrijters
a93a8c0140
Implemented redirectErrorStream for case where stdout is not also redirected.
2011-10-18 10:58:34 +00:00
jfrijters
1664875947
When an envblock is specified, we should clear out the existing environment variables.
2011-10-17 13:30:00 +00:00
jfrijters
1ecfb6d34f
Fixed openForAtomicAppend() to actually use atomic append.
2011-10-17 10:13:46 +00:00
jfrijters
d9b7514c42
"Pipe" writes should be flushed.
2011-10-17 09:36:14 +00:00
jfrijters
af73a8d55e
Bug fix. Make sure sun.misc.Launcher is initialized before setting a security manager, because Launcher assumes there is no security manager yet.
2011-10-11 08:00:45 +00:00
jfrijters
02c3477d63
Bug fix. Set os.name and os.version properties correctly when running on unknown Windows version (Windows 8).
2011-09-29 09:40:30 +00:00
jfrijters
2544c3c783
Updated StringHelper to OpenJDK 7.
2011-09-01 15:57:22 +00:00
jfrijters
6b3a9a66f5
Fixed race condition in Thread.initContextClassLoader().
2011-09-01 13:14:55 +00:00
jfrijters
b2f61f7294
Parent class loader should always be checked for validity.
2011-08-30 10:30:42 +00:00
jfrijters
058f2079bd
Enable ClassLoader.registerAsParallelCapable().
2011-08-30 06:57:07 +00:00
jfrijters
8d30f3a08b
Moved SafeGetEnvironmentVariable into Util.
2011-08-29 09:44:23 +00:00
jfrijters
a9f1e7879a
Implemented invokedynamic instruction.
2011-08-15 16:11:00 +00:00
jfrijters
320b4c0f63
Prepare for forking.
2011-08-15 07:52:36 +00:00
jfrijters
71ffb0a16d
Added CallerID to MethodHandles.lookup().
2011-08-13 09:12:53 +00:00
jfrijters
f12266e545
Prepare for forking.
2011-08-13 08:56:16 +00:00
jfrijters
9c9b77ef1f
Removed more unused code.
2011-08-09 15:15:33 +00:00
jfrijters
b676be17cc
Removed unused code.
2011-08-09 14:50:07 +00:00
jfrijters
0d589247e9
Prepare for forking.
2011-08-09 14:03:22 +00:00
jfrijters
348072f8df
Moved BoundMethodHandle and DirectMethodHandle initialization into the respective classes to avoid the MethodHandleNatives dependency and untyped "native" signatures.
2011-08-09 11:55:35 +00:00
jfrijters
6bc1ddc2e0
Prepare for forking.
2011-08-09 11:12:41 +00:00
jfrijters
6e7b8693fd
Implemented a large chunk of MethodHandle support.
2011-08-06 11:00:10 +00:00
jfrijters
d8959d6c8e
Prepare for forking.
2011-08-05 08:27:48 +00:00
jfrijters
e923b4abf0
Prepare for forking.
2011-08-03 10:14:07 +00:00
jfrijters
cb64bf58ea
- Updated properties to conform to OpenJDK 7.
...
- Fixed I18N properties (user.language, user.country, user.variant and user.script).
2011-08-01 08:40:32 +00:00
jfrijters
442851c125
Switched to a different way to force Thread.[get|set]ContextClassLoader methods to be JIT compiled eagerly to avod RuntimeHelpers.PrepareMethod() which requires full trust.
...
Added back in the (unused) OpenJDK override checking code.
2011-07-30 09:57:21 +00:00
jfrijters
20464c682c
Updated bulk of java.nio to OpenJDK 7.
2011-07-15 09:05:26 +00:00
jfrijters
e2493b9618
Fixed Thread.isCCLOverridden() bug. If the [g|s]etContextClassLoader() methods were not JITted before isCCLOverridden(), ldftn would return the JIT stub address and the vtable could contain the JITted method address.
2011-07-11 07:35:47 +00:00
jfrijters
dcb3e8451e
Updated java.io package to OpenJDK 7.
2011-07-01 08:56:51 +00:00
jfrijters
dbe1854d33
Updated java.lang.management package to OpenJDK 7.
2011-06-30 09:28:43 +00:00
jfrijters
74608dc3d2
Updated sun.misc.JavaLangAccess to OpenJDK 7.
2011-06-29 16:30:05 +00:00
jfrijters
eb95468faf
Updated java.lang.reflect package (minus ReflectAccess.java) to OpenJDK 7.
2011-06-29 15:07:09 +00:00
jfrijters
5cf713dd70
Updated java.lang.ref package to OpenJDK 7.
2011-06-29 13:28:04 +00:00
jfrijters
1eb3403769
Updated java.lang.ProcessImpl to OpenJDK 7. Added support for "magic" executable name with spaces detection (on windows).
...
redirectErrorStream will throw an IOException ("not implemented") when used without redirecting stdout, but previously redirectErrorStream wasn't implemented either (although it just ignored the flag instead of throwing an exception).
2011-06-29 09:14:49 +00:00
jfrijters
a91fc49ecc
Moved most of java/lang package to OpenJDK 7.
2011-06-28 07:41:36 +00:00
jfrijters
252871416f
Fixed regression introduced in previous commit. Throwable.printStackTrace() should do a virtual invocation of Throwable.printStackTrace(PrintStream).
2011-06-26 06:58:57 +00:00