Commit Graph

195 Commits

Author SHA1 Message Date
Roger Riggs
6c3b10fb1d 8303485: Replacing os.name for operating system customization
Reviewed-by: naoto, erikj, alanb
2023-03-27 17:45:20 +00:00
Jorn Vernee
2b81faeb35 8303022: "assert(allocates2(pc)) failed: not in CodeBuffer memory" When linking downcall handle
Reviewed-by: kvn, vlivanov
2023-03-15 23:43:18 +00:00
Jorn Vernee
6d30bbe62c 8303001: Add test for re-entrant upcalls
Reviewed-by: mcimadamore
2023-03-10 14:42:54 +00:00
Jorn Vernee
5977f266d0 8303604: Passing by-value structs whose size is not power of 2 doesn't work on all platforms (mainline)
Reviewed-by: mcimadamore
2023-03-06 15:18:39 +00:00
Jorn Vernee
dccfe8a2ee 8303582: Reduce duplication in jdk/java/foreign tests
Reviewed-by: mcimadamore
2023-03-06 14:52:04 +00:00
Jorn Vernee
c6de66c03f 8303516: HFAs with nested structs/unions/arrays not handled correctly on AArch64
Reviewed-by: mcimadamore
2023-03-03 14:33:56 +00:00
Saint Wesonga
fb13063943 8303409: Add Windows AArch64 ABI support to the Foreign Function & Memory API
Reviewed-by: jvernee
2023-03-02 13:26:27 +00:00
Feilong Jiang
24cdcd4c70 8293841: RISC-V: Implementation of Foreign Function & Memory API (Preview)
Co-authored-by: Weikai He <weikai@isrc.iscas.ac.cn>
Co-authored-by: Fei Yang <fyang@openjdk.org>
Reviewed-by: jvernee, fyang, shade, yadongwang
2023-01-19 01:33:35 +00:00
Maurizio Cimadamore
b9275a8ed1 8300275: SegmentScope.isAccessibleBy returning incorrect values
Reviewed-by: alanb, jvernee
2023-01-18 12:36:15 +00:00
Maurizio Cimadamore
945ef07564 8299862: OfAddress setter should disallow heap segments
Reviewed-by: jvernee
2023-01-11 10:31:25 +00:00
Maurizio Cimadamore
9c4ed16be2 8299561: VaList.empty() doesn't return a list associated with the global scope
Reviewed-by: jvernee
2023-01-05 09:44:16 +00:00
Maurizio Cimadamore
f771c56e16 8298797: Specification of some restricted methods is incorrect
Reviewed-by: jvernee, pminborg
2022-12-16 10:49:22 +00:00
Jorn Vernee
0452c39fec 8296477: Foreign linker implementation update following JEP 434
Co-authored-by: Jorn Vernee <jvernee@openjdk.org>
Co-authored-by: Nick Gasson <ngasson@openjdk.org>
Co-authored-by: Per Minborg <pminborg@openjdk.org>
Reviewed-by: rehn, mcimadamore, vlivanov
2022-12-05 14:47:12 +00:00
Maurizio Cimadamore
73baadceb6 8295044: Implementation of Foreign Function and Memory API (Second Preview)
Co-authored-by: Jorn Vernee <jvernee@openjdk.org>
Co-authored-by: Per Minborg <pminborg@openjdk.org>
Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org>
Reviewed-by: jvernee, pminborg, psandoz, alanb, sundar
2022-12-05 13:49:53 +00:00
Jorn Vernee
1722f9cce3 8290231: java/foreign/malloc/TestMixedMallocFree.java crashed in JDK19 ATR run
Reviewed-by: mcimadamore
2022-11-30 20:00:59 +00:00
Jorn Vernee
1a2ff58761 8297736: test/jdk/java/foreign/TestMatrix.java is broken
8291642: java/foreign/TestMatrix.java -few tests are failing due to JDK-8287158.

Reviewed-by: mcimadamore
2022-11-30 19:59:43 +00:00
Jorn Vernee
54a2c5a6d1 8290059: Do not use std::thread in panama tests
Reviewed-by: mcimadamore, stuefe, erikj
2022-07-28 14:53:26 +00:00
David Holmes
923462467e Merge 2022-07-27 14:07:11 +00:00
Maurizio Cimadamore
36c00fdd74 8291006: java/foreign/TestUnsupportedPlatform fails after JDK-8290455
Reviewed-by: jvernee
2022-07-27 09:50:58 +00:00
Maurizio Cimadamore
8c9d5ad4f8 8290455: jck test api/java_lang/foreign/VaList/Empty.html fails on some platforms
Reviewed-by: jvernee, mbaesken
2022-07-25 21:32:44 +00:00
Christoph Langer
c29242ebb0 8290460: Alpine: disable some panama tests that rely on std::thread
Backport-of: d7f0de272c
2022-07-22 11:33:05 +00:00
Thomas Stuefe
d7f0de272c 8290460: Alpine: disable some panama tests that rely on std::thread
Reviewed-by: jvernee, dholmes
2022-07-19 07:13:18 +00:00
Jesper Wilhelmsson
a7f83582d3 Merge 2022-07-14 06:19:40 +00:00
Jesper Wilhelmsson
d9ca438d06 Merge 2022-07-12 16:16:16 +00:00
Maurizio Cimadamore
4545ed6842 8289365: SegmentAllocator:allocateArray(MemoryLayout, count) does not throw IAEx when count is -1
Reviewed-by: psandoz
2022-07-12 14:22:42 +00:00
Maurizio Cimadamore
2baf526fce 8288850: SegmentAllocator:allocate() can return null some cases
Reviewed-by: psandoz
2022-07-12 14:14:46 +00:00
Jorn Vernee
3164c98f4c 8289148: j.l.foreign.VaList::nextVarg call could throw IndexOutOfBoundsException or even crash the VM
8289333: Specification of method j.l.foreign.VaList::skip deserves clarification
8289156: j.l.foreign.VaList::skip call could throw java.lang.IndexOutOfBoundsException: Out of bound access on segment

Reviewed-by: mcimadamore
2022-07-12 11:25:45 +00:00
Maurizio Cimadamore
fed3af8ae0 8287809: Revisit implementation of memory session
Reviewed-by: jvernee
2022-07-11 14:30:19 +00:00
Coleen Phillimore
e7795851d2 8271707: migrate tests to use jdk.test.whitebox.WhiteBox
Reviewed-by: lmesnik, dholmes
2022-07-08 15:55:14 +00:00
Maurizio Cimadamore
8e01ffb3a7 8289570: SegmentAllocator:allocateUtf8String(String str) default behavior mismatch to spec
Reviewed-by: alanb, psandoz
2022-07-01 21:46:07 +00:00
Maurizio Cimadamore
adbd200dc5 8289228: SegmentAllocator::allocateArray null handling is too lax
Reviewed-by: jvernee, psandoz
2022-06-28 10:06:42 +00:00
Maurizio Cimadamore
2c8ada689f 8289188: SegmentAllocator:allocateArray(*) default behavior mismatch to spec
Reviewed-by: alanb
2022-06-27 15:37:08 +00:00
Maurizio Cimadamore
d7b43af591 8288761: SegmentAllocator:allocate(long bytesSize) not throwing IAEx when bytesSize < 0
Reviewed-by: psandoz
2022-06-21 20:59:45 +00:00
Maurizio Cimadamore
ff3db52044 8288534: Out of bound errors for memory segment access mentions wrong values
Reviewed-by: psandoz
2022-06-16 15:59:22 +00:00
Maurizio Cimadamore
f58c9a659b 8287244: Add bound check in indexed memory access var handle
Reviewed-by: psandoz, jvernee
2022-05-26 08:34:49 +00:00
Maurizio Cimadamore
e1f140d270 8287206: Use WrongThreadException for confinement errors
Reviewed-by: alanb, darcy, mchung
2022-05-25 09:50:55 +00:00
Jorn Vernee
8f0eb5d401 8287158: Explicitly reject unsupported call shapes on macos-aarch64 in mainline
Reviewed-by: mcimadamore, ngasson
2022-05-24 15:03:53 +00:00
Maurizio Cimadamore
89a1d055d9 8286715: Generalize MemorySegment::ofBuffer
Reviewed-by: jvernee
2022-05-23 08:43:51 +00:00
Jorn Vernee
ee45a0ac63 8286669: Replace MethodHandle specialization with ASM in mainline
Co-authored-by: Jorn Vernee <jvernee@openjdk.org>
Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org>
Reviewed-by: mcimadamore
2022-05-18 16:03:18 +00:00
Jorn Vernee
81e4bdbe13 8283689: Update the foreign linker VM implementation
Co-authored-by: Jorn Vernee <jvernee@openjdk.org>
Co-authored-by: Nick Gasson <ngasson@openjdk.org>
Reviewed-by: mcimadamore, vlivanov, rehn
2022-05-18 09:49:55 +00:00
Maurizio Cimadamore
2c5d136260 8282191: Implementation of Foreign Function & Memory API (Preview)
Reviewed-by: erikj, jvernee, psandoz, dholmes, mchung
2022-05-12 16:17:45 +00:00
Vladimir Ivanov
f86f38a8af 8280901: MethodHandle::linkToNative stub is missing w/ -Xint
Reviewed-by: shade, kvn
2022-02-23 20:29:23 +00:00
Maurizio Cimadamore
d65c665839 8279527: Dereferencing segments backed by different scopes leads to pollution
Reviewed-by: psandoz, jvernee
2022-01-07 13:41:29 +00:00
Maurizio Cimadamore
9d43d25da8 8278897: Alignment of heap segments is not enforced correctly
Reviewed-by: jvernee
2022-01-05 10:47:34 +00:00
Maurizio Cimadamore
ea905bd3da 8277924: Small tweaks to foreign function and memory API
Reviewed-by: jvernee, psandoz
2021-12-02 11:22:31 +00:00
Jorn Vernee
98a9f03739 8277602: Deopt code does not extend the stack enough if the caller is an optimize entry blob
Reviewed-by: dlong, thartmann
2021-11-30 14:34:00 +00:00
Maurizio Cimadamore
96e36071b6 8275063: Implementation of Foreign Function & Memory API (Second incubator)
Reviewed-by: erikj, psandoz, jvernee, darcy
2021-11-24 11:51:16 +00:00
Aleksey Shipilev
dc33bd8b6c 8273315: Parallelize and increase timeouts for java/foreign/TestMatrix.java test
Reviewed-by: mcimadamore
2021-09-09 07:43:22 +00:00
Jorn Vernee
845c31dc4b 8269240: java/foreign/stackwalk/TestAsyncStackWalk.java test failed with concurrent GC
Reviewed-by: vlivanov, dholmes
2021-07-20 13:10:42 +00:00
Maurizio Cimadamore
b2416b60fb 8269281: java/foreign/Test{Down,Up}call.java time out
Reviewed-by: jvernee
2021-07-13 10:53:49 +00:00
Maurizio Cimadamore
e3773977cf 8268566: java/foreign/TestResourceScope.java timed out
Reviewed-by: jvernee
2021-07-01 16:28:48 +00:00
Jorn Vernee
8fa2520803 8268888: Upstream 8268230: Foreign Linker API & Windows user32/kernel32: String conversion seems broken
Reviewed-by: mcimadamore
2021-06-22 15:27:43 +00:00
Jorn Vernee
f25e7197fe 8268717: Upstream: 8268673: Stack walk across optimized entry frame on fresh native thread fails
Reviewed-by: mcimadamore, erikj
2021-06-21 12:06:51 +00:00
Chris Hegarty
fe48ea9d79 8268342: java/foreign/channels/TestAsyncSocketChannels.java fails with "IllegalStateException: This segment is already closed"
Reviewed-by: dfuchs
2021-06-14 08:29:49 +00:00
Maurizio Cimadamore
f4b3170197 8268428: Test java/foreign/TestResourceScope.java fails: expected [M] but found [N]
Reviewed-by: dfuchs
2021-06-10 12:52:04 +00:00
Jorn Vernee
ab01cb547d 8268339: Upstream: 8267989: Exceptions thrown during upcalls should be handled
Reviewed-by: psandoz, mcimadamore
2021-06-10 08:44:28 +00:00
Jorn Vernee
8158b82269 8268327: Upstream: 8268169: The system lookup can not find stdio functions such as printf on Windows 10
Reviewed-by: erikj, sundar
2021-06-08 14:20:31 +00:00
Maurizio Cimadamore
6843576c95 8268227: java/foreign/TestUpcall.java still times out
Reviewed-by: dcubed
2021-06-08 14:02:28 +00:00
Nick Gasson
76b54a1995 8263512: [macos_aarch64] issues with calling va_args functions from invoke_native
Reviewed-by: jvernee
2021-06-04 23:55:12 +00:00
Maurizio Cimadamore
59a539fef1 8268129: LibraryLookup::ofDefault leaks symbols from loaded libraries
Reviewed-by: jvernee, psandoz
2021-06-04 12:53:17 +00:00
Maurizio Cimadamore
52d8215a1e 8268131: 2 java/foreign tests timed out
Reviewed-by: dcubed
2021-06-03 16:19:35 +00:00
Jonathan Gibbons
d46a2c8ecf 8268147: need to update reference to testng module for jtreg6
Reviewed-by: dholmes, psandoz, naoto
2021-06-02 22:33:16 +00:00
Maurizio Cimadamore
a223189b06 8264774: Implementation of Foreign Function and Memory API (Incubator)
Co-authored-by: Paul Sandoz <psandoz@openjdk.org>
Co-authored-by: Jorn Vernee <jvernee@openjdk.org>
Co-authored-by: Vladimir Ivanov <vlivanov@openjdk.org>
Co-authored-by: Athijegannathan Sundararajan <sundar@openjdk.org>
Co-authored-by: Chris Hegarty <chegar@openjdk.org>
Reviewed-by: psandoz, chegar, mchung, vlivanov
2021-06-02 10:53:06 +00:00
Chris Hegarty
3c9858ddfb 8264827: Large mapped buffer/segment crash the VM when calling isLoaded
Reviewed-by: alanb, mcimadamore
2021-04-12 11:21:34 +00:00
Igor Ignatyev
a7aba2b61c 8263549: 8263412 can cause jtreg testlibrary split
Reviewed-by: iklam, dcubed
2021-03-13 14:51:53 +00:00
Maurizio Cimadamore
5de0f4b2ce 8260869: Test java/foreign/TestHandshake.java fails intermittently
Reviewed-by: psandoz
2021-03-03 01:14:25 +00:00
Jesper Wilhelmsson
51e14f2e2a Merge 2021-01-14 01:29:47 +00:00
Maurizio Cimadamore
17b4db31cb 8259636: Check for buffer backed by shared segment kicks in in unexpected places
Reviewed-by: sundar, alanb, chegar
2021-01-12 21:06:03 +00:00
Maurizio Cimadamore
b03880e33b 8259634: MemorySegment::asByteBuffer does not respect spatial bounds
Reviewed-by: alanb, chegar
2021-01-12 17:09:05 +00:00
Jesper Wilhelmsson
b378f54df3 Merge 2021-01-12 01:08:14 +00:00
Maurizio Cimadamore
d60a937e87 8259028: ClassCastException when using custom filesystem with wrapper FileChannel impl
Reviewed-by: chegar, alanb, uschindler
2021-01-11 16:14:56 +00:00
Jesper Wilhelmsson
555641ede5 Merge 2021-01-07 21:17:35 +00:00
Maurizio Cimadamore
e66187d885 8259032: MappedMemorySegmentImpl#makeMappedSegment() ignores Unmapper#pagePosition
Co-authored-by: Uwe Schindler <uschindler@openjdk.org>
Reviewed-by: alanb
2021-01-06 12:18:43 +00:00
Maurizio Cimadamore
b7940aa1c4 8259027: NullPointerException in makeMappedSegment due to NULL Unmapper when length of segment is 0
Reviewed-by: chegar, uschindler
2021-01-05 16:15:28 +00:00
Nick Gasson
643ddc1320 8257882: Implement linkToNative intrinsic on AArch64
Reviewed-by: jvernee, mcimadamore, aph
2020-12-17 03:24:40 +00:00
Aleksey Shipilev
9ce3d806fa 8257887: java/foreign/TestSegments.java test fails on 32-bit after JDK-8257186
Reviewed-by: jiefu, adityam, redestad
2020-12-09 06:42:38 +00:00
Maurizio Cimadamore
bbc44f57c4 8257186: Size of heap segments is not computed correctlyFix overflow in size computation for heap segments
Reviewed-by: jvernee, chegar
2020-12-07 17:25:23 +00:00
Jorn Vernee
04ce8e3840 8257184: Upstream 8252504: Add a method to MemoryLayout which returns a offset-computing method handle
Reviewed-by: mcimadamore, chegar
2020-12-07 11:08:24 +00:00
Jorn Vernee
734d3c3b8a 8256862: Several java/foreign tests fail on x86_32 platforms
Reviewed-by: sundar
2020-11-26 11:21:10 +00:00
Maurizio Cimadamore
9aeadbb020 8256865: Foreign Memory Access and Linker API are missing NPE checks
Reviewed-by: jvernee, sundar, chegar
2020-11-25 10:48:37 +00:00
Maurizio Cimadamore
0fb31dbf3a 8254231: Implementation of Foreign Linker API (Incubator)
Reviewed-by: coleenp, ihse, dholmes, vlivanov
2020-11-23 11:00:38 +00:00
Nick Gasson
26a1ec1b96 8256435: [TESTBUG] java/foreign/TestHandshake.java fails with direct buffer memory OOM
Reviewed-by: mcimadamore
2020-11-18 02:08:20 +00:00
Maurizio Cimadamore
3e70aac5cc 8254162: Implementation of Foreign-Memory Access API (Third Incubator)
Reviewed-by: erikj, psandoz, alanb
2020-11-12 16:37:23 +00:00
Maurizio Cimadamore
ebf443a16f 8253590: java/foreign tests are still failing on x86_32 after foreign-memaccess integration
Reviewed-by: psandoz
2020-09-29 09:40:21 +00:00
Chris Hegarty
7f69acc778 8247696: Incorrect tail computation for large segments in AbstractMemorySegmentImpl::mismatch
Reviewed-by: psandoz, mcimadamore
2020-06-23 10:09:26 +01:00
Chris Hegarty
f1e1cb7055 8246095: Tweaks to memory access API
Add more user friendly API points to the foreign memory acesss API

Reviewed-by: chegar, psandoz
2020-06-03 16:50:03 +01:00
Maurizio Cimadamore
55ed0d853f 8246040: java/foreign/TestAddressHandle fails on big endian platforms
Make test more robust by not relying on implicit endianness-related assumption

Reviewed-by: chegar
2020-05-29 12:40:50 +01:00
Peter Levart
5967aaf629 8246050: Improve scalability of MemoryScope
Reiplement memory scope using StampedLock

Reviewed-by: psandoz
2020-05-29 12:12:09 +01:00
Aleksey Shipilev
30b750dcd0 8245722: 32-bit build failures after JDK-8243491
Reviewed-by: stuefe
2020-05-26 09:29:00 +02:00
Chris Hegarty
f3eb44a94d 8243491: Implementation of Foreign-Memory Access API (Second Incubator)
Upstream latest changes of the Foreign-Memory Access API

Co-authored-by: Jorn Vernee <jorn.vernee@oracle.com>
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Paul Sandoz <paul.sandoz@oracle.com>
Co-authored-by: Peter Levart <peter.levart@gmail.com>
Reviewed-by: chegar, psandoz
2020-05-25 10:54:39 +01:00
Nick Gasson
987ba9f3a4 8237521: Memory Access API fixes for 32-bit
Reviewed-by: mcimadamore, dholmes
2020-01-24 17:41:44 +08:00
Maurizio Cimadamore
099184950b 8235837: Memory access API refinements
Reviewed-by: chegar, psandoz
2020-01-15 11:09:00 +00:00
Nick Gasson
2afe1c6c23 8236634: Memory Access API tests fail on 32-bit
Reviewed-by: mcimadamore, shade
2020-01-13 15:31:23 +08:00
Paul Sandoz
e5b0568e1c 8236769: Clarify javadoc of memory access API
Reviewed-by: chegar
2020-01-08 23:12:45 +00:00
Jorn Vernee
8f4f088a12 8234049: Implementation of Memory Access API (Incubator)
Co-authored-by: Vlaidmir Ivanov <vladimir.x.ivanov@oracle.com>
Reviewed-by: alanb, psandoz, chegar, rriggs, plevart, briangoetz, jrose, adinn, vlivanov
2019-12-12 22:59:57 +00:00