Commit Graph

18 Commits

Author SHA1 Message Date
Joel Dice
9b2a02e92b avoid calling unrelated JNI methods during class initialization
The main goal here is to avoid making JNI calls from code that really
shouldn't need JNI (e.g. before this patch, ArrayList.add called
Math.max, which called Math.<clinit>, which called Random.<init>,
which called System.currentTimeMillis).

Besides following the "pay for only what you need" principle, this
change ensures we can call LambdaMetaFactory methods during AOT
compilation with a minimal VM (i.e. without compiling in JNI methods
we don't need).
2015-09-12 19:58:50 -06:00
Joel Dice
cbde34620c update copyright years 2015-03-13 12:52:59 -06:00
Timofey Lagutin
d4d31af740 Added missing cp/avian/Math.atan2(double,double)
It was implemented as native function, but wasn't added to java.lang.Math.
2014-10-11 14:33:48 +04:00
Joel Dice
9b7d0d1624 update copyright years 2014-04-23 15:33:41 -06:00
Johannes Schindelin
6a7c03aef9 Implement the Math#signum method
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2013-11-06 09:07:58 -06:00
Joel Dice
87b02eb949 update copyright years
Previously, I used a shell script to extract modification date ranges
from the Git history, but that was complicated and unreliable, so now
every file just gets the same year range in its copyright header.  If
someone needs to know when a specific file was modified and by whom,
they can look at the Git history themselves; no need to include it
redundantly in the header.
2013-07-02 20:52:38 -06:00
Victor Shcherb
d6aff87ef9 Add java lang math methods 2013-02-09 09:42:11 +02:00
Joel Dice
8e1ec5794f implement java.util.Random and java.lang.Math.random in Java 2008-03-20 18:39:25 -06:00
Joel Dice
2edaa82801 prepend copyright notice and license to all source files; add license.txt and readme.txt 2008-02-19 11:06:52 -07:00
Eric Scharff
51c198f0f0 Implemented java.lang.Math.random() properly (seeding the random number
on first use, and then using the system random number generator)
2007-11-28 17:06:04 -07:00
Eric Scharff
43a2cb7cc5 Tie up some loose ends, implementing methods that are useful but not yet implemented. 2007-09-28 11:38:58 -06:00
Eric Scharff
09efe501f5 Added TODO 2007-09-26 09:48:36 -06:00
Eric Scharff
cacb5a6f1e Stub method for Math.random() 2007-09-26 09:47:25 -06:00
Joel Dice
cb03240c64 quick sketches of various SWT 3.3 dependencies 2007-09-11 19:13:05 -06:00
Joel Dice
a4b4f36c5b various classpath updates to help SWT build 2007-08-30 17:31:32 -06:00
Joel Dice
38d4ee6e07 flesh out ClassLoader, etc. 2007-07-30 17:19:05 -06:00
Joel Dice
5e336544f5 classpath progress 2007-07-29 17:38:35 -06:00
Joel Dice
a2bd7d0668 GC stress fixes and other bugfixes; classpath progress 2007-07-29 17:32:23 -06:00