Commit graph

52 commits

Author SHA1 Message Date
Eirik Bjørsnøs
e03b1506d3 8178966: Don't swallow early bootstrap exceptions in Boolean.getBoolean, Integer.getInteger and Long.getLong
Co-authored-by: Peter Levart <plevart@openjdk.org>
Reviewed-by: jpai, rriggs
2024-11-21 20:04:39 +00:00
Sean Mullan
db85090553 8338411: Implement JEP 486: Permanently Disable the Security Manager
Co-authored-by: Sean Mullan <mullan@openjdk.org>
Co-authored-by: Alan Bateman <alanb@openjdk.org>
Co-authored-by: Weijun Wang <weijun@openjdk.org>
Co-authored-by: Aleksei Efimov <aefimov@openjdk.org>
Co-authored-by: Brian Burkhalter <bpb@openjdk.org>
Co-authored-by: Daniel Fuchs <dfuchs@openjdk.org>
Co-authored-by: Harshitha Onkar <honkar@openjdk.org>
Co-authored-by: Joe Wang <joehw@openjdk.org>
Co-authored-by: Jorn Vernee <jvernee@openjdk.org>
Co-authored-by: Justin Lu <jlu@openjdk.org>
Co-authored-by: Kevin Walls <kevinw@openjdk.org>
Co-authored-by: Lance Andersen <lancea@openjdk.org>
Co-authored-by: Naoto Sato <naoto@openjdk.org>
Co-authored-by: Roger Riggs <rriggs@openjdk.org>
Co-authored-by: Brent Christian <bchristi@openjdk.org>
Co-authored-by: Stuart Marks <smarks@openjdk.org>
Co-authored-by: Ian Graves <igraves@openjdk.org>
Co-authored-by: Phil Race <prr@openjdk.org>
Co-authored-by: Erik Gahlin <egahlin@openjdk.org>
Co-authored-by: Jaikiran Pai <jpai@openjdk.org>
Reviewed-by: kevinw, aivanov, rriggs, lancea, coffeys, dfuchs, ihse, erikj, cjplummer, coleenp, naoto, mchung, prr, weijun, joehw, azvegint, psadhukhan, bchristi, sundar, attila
2024-11-12 17:16:15 +00:00
Shaojin Wen
b0a371b085 8343925: [BACKOUT] JDK-8342650 Move getChars to DecimalDigits
Reviewed-by: jpai, alanb, liach
2024-11-11 15:14:10 +00:00
Shaojin Wen
e1d684c645 8342650: Move getChars to DecimalDigits
Reviewed-by: liach
2024-11-11 05:06:56 +00:00
Aleksey Shipilev
7c36fa7e17 8343019: Primitive caches must use boxed instances from the archive
Reviewed-by: jiangli, vlivanov, iklam
2024-10-31 20:18:25 +00:00
Chen Liang
40e07a7ea3 8342865: Use type parameter for Class::getPrimitiveClass
Reviewed-by: darcy
2024-10-26 14:45:04 +00:00
Joe Darcy
a21c558699 8342863: Use pattern matching for instanceof in equals methods of wrapper classes
Reviewed-by: rriggs
2024-10-23 18:23:50 +00:00
Joe Darcy
5586f83e34 8341064: Define anchor point and index term for "wrapper classes"
Reviewed-by: prappo, liach
2024-09-30 16:13:35 +00:00
Joe Darcy
8225a5f58a 8340981: Update citations to "Hacker's Delight"
Reviewed-by: bpb, iris, liach, jwaters
2024-09-26 16:03:04 +00:00
Shaojin Wen
7f11935461 8337167: StringSize deduplication
Reviewed-by: liach, rriggs
2024-07-26 07:08:33 +00:00
Raffaello Giulietti
9bfa082970 8318646: Integer#parseInt("") throws empty NumberFormatException message
Reviewed-by: redestad, alanb, bpb, darcy, uschindler
2023-10-24 10:20:26 +00:00
Raffaello Giulietti
b62e774e6a 8317515: Unify the code of the parse*() families of methods in j.l.Integer and j.l.Long
Reviewed-by: redestad
2023-10-06 16:20:21 +00:00
shaojin.wensj
4b43c25fe3 8310929: Optimization for Integer.toString
Reviewed-by: redestad, rriggs
2023-09-08 02:13:52 +00:00
shaojin.wensj
20f7d05ef2 8310502: Optimization for j.l.Long.fastUUID()
Reviewed-by: liach, alanb
2023-06-29 13:37:32 +00:00
Per Minborg
f7de726bd3 8295555: Primitive wrapper caches could be @Stable
Reviewed-by: rriggs
2023-06-13 08:39:00 +00:00
Justin Lu
d663b5da10 8299498: Usage of constructors of primitive wrapper classes should be avoided in java.lang API docs
Reviewed-by: naoto, darcy, rriggs, mchung, lancea
2023-01-11 17:18:39 +00:00
Jatin Bhateja
5d82d67a9e 8290034: Auto vectorize reverse bit operations.
Reviewed-by: xgong, kvn
2022-07-28 04:43:01 +00:00
Quan Anh Mai
108cd69516 8283726: x86_64 intrinsics for compareUnsigned method in Integer and Long
Reviewed-by: kvn, jbhateja
2022-06-29 10:34:05 +00:00
Paul Sandoz
395aea307f 8288414: Long::compress/expand samples are not correct
Reviewed-by: alanb
2022-06-15 19:21:13 +00:00
Jatin Bhateja
f347ff9986 8283894: Intrinsify compress and expand bits on x86
Reviewed-by: psandoz, sviswanathan, jrose, kvn
2022-06-06 00:37:54 +00:00
Paul Sandoz
fbb0916090 8283892: Compress and expand bits
Reviewed-by: alanb, redestad
2022-04-14 20:27:12 +00:00
vamsi-parasa
37e28aea27 8282221: x86 intrinsics for divideUnsigned and remainderUnsigned methods in java.lang.Integer and java.lang.Long
Reviewed-by: sviswanathan, kvn, jbhateja
2022-04-10 03:47:18 +00:00
Claes Redestad
71ca85f5a6 8278831: Use table lookup for the last two bytes in Integer.getChars
Reviewed-by: jlaskey, rriggs
2022-01-17 11:01:55 +00:00
Sergey Tsypanov
b29fbad940 8267844: Replace Integer/Long.valueOf() with Integer/Long.parse*() where applicable
Reviewed-by: redestad
2021-08-12 10:03:52 +00:00
Yi Yang
afe957cd97 8268698: Use Objects.check{Index,FromToIndex,FromIndexSize} for java.base
Reviewed-by: mchung, rriggs
2021-07-13 02:23:16 +00:00
Patrick Concannon
d43c8a74b3 8268124: Update java.lang to use switch expressions
Reviewed-by: naoto, darcy, mchung, iris, lancea, dfuchs
2021-06-10 11:12:37 +00:00
Jonathan Gibbons
20b9ba53a5 8262875: doccheck: empty paragraphs, etc in java.base module
Reviewed-by: alanb, darcy, lancea
2021-03-02 20:35:51 +00:00
Joe Darcy
564011cff0 8261290: Improve error message for NumberFormatException on null input
Reviewed-by: attila, alanb
2021-02-21 18:43:26 +00:00
Roger Riggs
aa9c136d67 8251989: Hex formatting and parsing utility
Reviewed-by: tvaleev, chegar, naoto, darcy
2020-12-16 20:29:49 +00:00
Dan Smith
48d8650ae1 8257845: Integrate JEP 390
8254047: [JEP 390] Revise "value-based class" & apply to wrappers
8252181: [JEP 390] Define & apply annotation jdk.internal.ValueBased
8252183: [JEP 390] Add 'lint' warning for @ValueBased classes
8257027: [JEP 390] Diagnose synchronization on @ValueBased classes
8252180: [JEP 390] Deprecate wrapper class constructors for removal

Co-authored-by: Roger Riggs <rriggs@openjdk.org>
Co-authored-by: Srikanth Adayapalam <sadayapalam@openjdk.org>
Co-authored-by: Lois Foltan <lfoltan@openjdk.org>
Reviewed-by: rriggs, hseigel, mchung, darcy
2020-12-08 23:04:01 +00:00
Raffaello Giulietti
0efdde188b 8238669: Long.divideUnsigned is extremely slow for certain values (Needs to be Intrinsic)
Reviewed-by: bpb
2020-10-21 16:32:59 +00:00
Philippe Marschall
2a406f3ce5 8138732: Rename @HotSpotIntrinsicCandidate to @IntrinsicCandidate and move it to the jdk.internal.vm.annotation package
Reviewed-by: dholmes, alanb, psandoz, kvn, egahlin
2020-09-30 20:05:07 +00:00
Yumin Qi
89c5e49ba2 8253500: [REDO] JDK-8253208 Move CDS related code to a separate class
Reviewed-by: mchung, iklam
2020-09-24 15:28:10 +00:00
Ioi Lam
65af837391 8253496: [BACKOUT] JDK-8253208 Move CDS related code to a separate class
Reviewed-by: eosterlund, dcubed
2020-09-22 20:15:01 +00:00
Yumin Qi
c1df13b855 8253208: Move CDS related code to a separate class
Reviewed-by: mchung, iklam
2020-09-22 16:12:05 +00:00
Joe Darcy
b7c307c019 8249687: Use inline @jls and @jvm tages in more places in java.base
Reviewed-by: bpb, mchung, mikael
2020-07-17 17:27:31 -07:00
Mark Reinhold
55039aa1c6 8249205: Remove unnecessary trademark symbols
Reviewed-by: darcy, lancea, bpb, prr, jjg, cjplummer, iris, dfuchs, weijun, joehw, wetmore, bchristi
2020-07-15 14:21:54 -07:00
Joe Darcy
9d764ee48e 8229997: Apply java.io.Serial annotations in java.base
Reviewed-by: alanb, rriggs
2019-08-29 16:31:34 -07:00
Tagir F. Valeev
985e0c53b3 8226286: Remove unused method java.lang.Integer::formatUnsignedInt and cleanup Integer/Long classes
Reviewed-by: bpb, redestad
2019-06-20 03:32:14 +00:00
Joe Darcy
6930e80c31 8224175: Fix inconsistencies in @jls and @jvms tags
Reviewed-by: jjg, rfield
2019-05-20 17:29:44 -07:00
Ivan Gerasimov
12bc8196d4 8216413: Long.parseLong() is specified to throw unless string contains parsable {@code int}; should be {@code long}
Reviewed-by: clanger
2019-01-09 06:18:33 -08:00
Vicente Romero
650f3fc113 8215300: additional changes to constants API
Reviewed-by: goetz
2018-12-13 10:35:09 -05:00
Claes Redestad
a3df1d618e 8215281: Use String.isEmpty() when applicable in java.base
Reviewed-by: dfuchs, alanb
2018-12-13 15:31:05 +01:00
Vicente Romero
9846588b31 8210031: implementation for JVM Constants API
Co-authored-by: Brian Goetz <brian.goetz@oracle.com>
Reviewed-by: jrose, mcimadamore, darcy, mchung, rriggs, dholmes, forax
2018-12-09 12:36:24 -05:00
Claes Redestad
4b45441ae9 8213033: Archive remaining primitive box caches
Reviewed-by: jiangli, alanb
2018-11-20 21:12:46 +01:00
Ivan Gerasimov
ffa4cfe355 8209171: Simplify Java implementation of Integer/Long.numberOfTrailingZeros()
Co-authored-by: Martin Buchholz <martinrb@google.com>
Reviewed-by: martin
2018-08-23 12:09:46 -07:00
Joe Darcy
b0954bc7ab 8176425: Add radix indication in NumberFormatException message for Integer.decode
Reviewed-by: lancea
2018-08-15 10:16:15 -07:00
Claes Redestad
55ba3cad8b 8203352: Improve java implementation of Integer/Long.numberOfLeadingZeros
Co-authored-by: Ivan Gerasimov <ivan.gerasimov@oracle.com>
Reviewed-by: martin, igerasim
2018-05-22 14:44:18 +02:00
Joe Darcy
15ef60b350 8200478: For boxing conversion javac uses Long.valueOf which does not guarantee caching according to its javadoc
Reviewed-by: bpb
2018-04-25 22:12:06 -07:00
Ivan Gerasimov
0af73c4306 8199843: Optimize Integer/Long.highestOneBit()
Reviewed-by: redestad, plevart
2018-03-26 17:30:14 -07:00