62 Commits

Author SHA1 Message Date
James Laskey
d424f85c55 8138960: Module version is checked incorrectly in libjimage
Reviewed-by: alanb, mchung, iris
2015-10-06 13:49:41 -03:00
Rob McKenna
7127fab647 8133249: Occasional SIGSEGV: non thread-safe use of strerr in getLastErrorString
Reviewed-by: igerasim, rriggs, christos
2015-10-01 00:13:09 +01:00
Vyom Tewari
bed7702d83 8038075: JNI warnings in jdk/src/share/native/sun/misc/VMSupport.c
Reviewed-by: rriggs
2015-09-29 19:50:56 +02:00
Joe Darcy
47814c8df0 7130085: Port fdlibm hypot to Java
Reviewed-by: bpb
2015-09-23 14:14:14 -07:00
James Laskey
8aa6d9f160 8135197: libjimage code needs translation from hotspot-ish to jdk-ish
Reviewed-by: rriggs, chegar
2015-09-22 12:47:40 -03:00
Joe Darcy
67603e6d54 8134795: Port fdlibm pow to Java
Reviewed-by: bpb
2015-09-17 13:43:06 -07:00
Alejandro Murillo
556157743b Merge 2015-09-10 14:55:20 -07:00
Jesper Wilhelmsson
a97c863c3d Merge 2015-09-08 16:10:36 +02:00
Vyom Tewari
d9d52a27f0 8080486: JNI exception pending in jdk/src/java.base/windows/native/libnet/DualStackPlainSocketImpl.c
Reviewed-by: alanb, chegar, igerasim
2015-09-07 10:37:00 +02:00
Jim Laskey
953b4a3225 8087181: Move native jimage code to its own library (maybe libjimage)
Co-authored-by: Jean-Francois Denise <jean-francois.denise@oracle.com>
Co-authored-by: Roger Riggs <roger.riggs@oracle.com>
Reviewed-by: alanb, lfoltan, hseigel, acorn
2015-09-04 10:11:43 -03:00
Martin Buchholz
24742f7b1d 8134984: Text files should end in exactly one newline
Automated fixup of newlines at end-of-file via the usual perl one-liner

Reviewed-by: chegar, sherman
2015-09-02 14:11:50 -07:00
Henry Jen
eaa42993db 8027634: Support @argfiles for java command-line tool
Reviewed-by: ksrini, mchung
2015-07-08 23:26:48 -07:00
Alejandro Murillo
d8f13cb1d1 Merge 2015-08-13 15:50:52 -07:00
Brian Burkhalter
10207de32f 8065595: Wrong JNI_OnLoad called if just loaded lib does not have JNI_OnLoad function
Add nio_util.c containing JNI_OnLoad bare bones implementation.

Reviewed-by: rriggs
2015-08-13 09:36:14 -07:00
Staffan Larsen
de0713848b 8076470: Remove the JVM TI hprof Agent
Reviewed-by: sspitsyn, mchung, erikj
2015-08-10 13:08:55 +02:00
Harold Seigel
4496a599b2 8081695: Old verifier fails to reject bad access to protected <init> method
Remove the class file version check that prevented the proper access check

Reviewed-by: coleenp, gtriantafill, lfoltan
2015-07-24 10:03:58 -04:00
Harold Seigel
781e67c86c 8129897: Old verifier fails to reject erroneous cast from boolean[] to byte[]
Add ITEM_Boolean enum to differentiate between arrays of booleans and arrays of bytes

Reviewed-by: dholmes, lfoltan
2015-07-23 08:44:37 -04:00
Jean-Francois Denise
bff48ef15d 8130344: assert(handle != __null) failed: JNI handle should not be null' in jni_GetLongArrayElements
Check JNI NewArray for NULL value

Reviewed-by: lfoltan, alanb, dholmes
2015-07-13 14:05:17 +01:00
Daniel D. Daugherty
fd67ab1042 Merge 2015-07-09 14:48:12 -07:00
Daniel D. Daugherty
10219ee9a2 Merge 2015-07-03 07:13:24 -07:00
Zoltan Majo
94d36649af 8076112: Add @HotSpotIntrinsicCandidate annotation to indicate methods for which Java Runtime has intrinsics
Annotate possibly intrinsified methods with @HotSpotIntrinsicCandidate. Add checks omitted by intrinsics to the library code. Add CheckIntrinsics flags to check consistency of intrinsics.

Reviewed-by: jrose, kvn, thartmann, vlivanov, abuckley, darcy, ascarpino, briangoetz, alanb, aph, dnsimon
2015-07-03 07:23:45 +02:00
Volker Simonis
48aacbe3f9 8130315: Fix wrong prototype of GrowKnownVMs() in java.c
Reviewed-by: alanb, ksrini
2015-07-02 15:25:46 +02:00
Jean-Francois Denise
30cacaa5c9 8080511: Refresh of jimage support
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: alanb, mchung, psandoz, acorn, lfoltan, ctornqvi
2015-06-25 18:24:39 +02:00
Volker Simonis
9a8eaa367e 8081674: EmptyStackException at startup if running with extended or unsupported charset
Reviewed-by: mchung, alanb
2015-06-11 17:29:09 +02:00
Staffan Larsen
6329a86bca 8080991: Compilation error with recent clang in java.base/share/native/launcher/main.c: error: comparison of array 'const_jargs' not equal to a null pointer is always true
Reviewed-by: ksrini, ddehaven
2015-05-28 14:54:58 -07:00
Joe Darcy
5aee5a8ee7 8081359: Update bug reporting URL
Reviewed-by: lancea
2015-05-28 11:31:40 -07:00
Roger Riggs
3788afad1f 8074818: Resolve disabled warnings for libjava
8080007: Stop ignoring warnings for libjava

Reviewed-by: alanb, erikj
2015-05-22 10:12:18 -04:00
Phil Race
95cc940989 Merge 2015-05-13 08:37:34 -07:00
Jeremy Manson
292354a1fe 8079841: Buffer underflow with empty zip entry names
Check for zero-length entry name before accessing "last" byte

Reviewed-by: sherman, martin
2015-05-12 14:39:36 -07:00
Phil Race
b8cf472fe8 Merge 2015-05-05 13:29:31 -07:00
Sergey Bylokhov
e79b50f322 8076264: [macosx] Launching app on MacOSX requires enclosing class
Reviewed-by: azvegint, ksrini
2015-04-16 21:55:55 +03:00
Vladimir Ivanov
4097393258 8057919: Class.getSimpleName() should work for non-JLS compliant class names
Reviewed-by: dholmes, jrose
2015-04-14 18:03:12 +03:00
Mikael Vidstedt
7b1455163e 8074840: Resolve disabled warnings for libjli and libjli_static
Reviewed-by: dholmes, ksrini
2015-04-02 11:54:33 -07:00
Martin Buchholz
8ab93c84ec 8073158: zip files with total entry count 0xFFFF need not be ZIP64 files
Minor rewrite of crufty zip implementation in parse_manifest.c

Reviewed-by: sherman
2015-03-25 15:36:43 -07:00
Martin Buchholz
0d022c42c9 8074579: Use more efficient and readable way of checking PKZIP signatures
Reviewed-by: sherman
2015-03-10 14:23:03 -07:00
Kumar Srinivasan
64c0d97630 8074373: NMT is not enabled if NMT option is specified after class path specifiers
Reviewed-by: dholmes
2015-03-07 15:21:36 -08:00
Ivan Gerasimov
2264f58af9 8074067: (bf) Re-examine java.base/share/native/libjava/Bits.c
Reviewed-by: alanb, martin
2015-03-04 13:44:18 +03:00
Ivan Gerasimov
68b3fe02ad 8074066: Useless code in share/native/libjava/VM.c
Reviewed-by: mchung
2015-03-03 10:30:44 +03:00
Kumar Srinivasan
8749a5a08c 8066185: VM crashed with SIGSEGV VirtualMemoryTracker::add_reserved_region
Reviewed-by: coleenp, dholmes
2015-02-25 06:21:55 -08:00
Kumar Srinivasan
bb5e8afcf2 8068033: JNI exception pending in jdk/src/share/bin/java.c
Reviewed-by: mchung, serb
2015-02-03 09:49:27 -08:00
Daniel Fuchs
b5f5424c83 8068730: Increase the precision of the implementation of java.time.Clock.systemUTC()
Changes the implementation of java.time.Clock.systemUTC() to take advantage of the maximum resolution of the underlying native clock on which System.currentTimeMillis() is based.

Reviewed-by: dholmes, rriggs, scolebourne, sla
2015-01-28 17:48:59 +01:00
Ivan Gerasimov
bd3205c63e 8068338: Better message about incompatible zlib in Deflater.init
Reviewed-by: alanb, sherman
2014-12-30 00:11:00 +03:00
Alejandro Murillo
f507e301d3 Merge 2014-12-19 17:01:45 -08:00
Alejandro Murillo
346b210c83 Merge 2014-12-16 13:10:34 -08:00
Yumin Qi
8382195614 Merge 2014-12-14 23:03:00 +00:00
Coleen Phillimore
ecc9f19dc9 8042418: Remove JVM_FindClassFromClassLoader
The function has been replaced so is no longer used.

Reviewed-by: mchung, dholmes
2014-12-14 16:02:46 -05:00
Alejandro Murillo
c88778bc25 Merge 2014-12-11 23:06:14 -08:00
Yumin Qi
3dff2ab063 Merge 2014-12-08 00:25:10 -08:00
Chris Plummer
a47e1013c2 6762191: Setting stack size to 16K causes segmentation fault
Fixed by forcing the stack size to always be at least 32k.

Reviewed-by: dholmes, alanb, ksrini, sspitsyn
2014-12-04 11:26:46 -08:00
Chris Hegarty
441905cdc7 8049367: Modular Run-Time Images
Co-authored-by: Alan Bateman <alan.bateman@oracle.com>
Co-authored-by: Alex Buckley <alex.buckley@oracle.com>
Co-authored-by: Bradford Wetmore <bradford.wetmore@oracle.com>
Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: James Laskey <james.laskey@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Co-authored-by: Karen Kinnear <karen.kinnear@oracle.com>
Co-authored-by: Magnus Ihse Bursie <magnus.ihse.bursie@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Co-authored-by: Paul Sandoz <paul.sandoz@oracle.com>
Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com>
Reviewed-by: chegar, dfuchs, ihse, joehw, mullan, psandoz, wetmore
2014-12-03 14:22:58 +00:00