Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport] Changes from upstream Graal tag vm-23.1.5 #37

Open
zakkak opened this issue Jan 9, 2025 · 1 comment
Open

[Backport] Changes from upstream Graal tag vm-23.1.5 #37

zakkak opened this issue Jan 9, 2025 · 1 comment
Assignees
Labels
backport Backport or backport request
Milestone

Comments

@zakkak
Copy link
Contributor

zakkak commented Jan 9, 2025

What would you like to backport?

All changes included in https://github.com/oracle/graal/tree/vm-23.1.5 that are not part of this repository.

Describe the motivation for the backport.

https://github.com/oracle/graal/tree/vm-23.1.5 includes a number of backports performed by the GraalVM team for the 23.1.5 release that are not part of the community repository.

Merging them will bring the community repository closer to base of Oracle GraalVM for JDK 21.

@zakkak zakkak added the backport Backport or backport request label Jan 9, 2025
@zakkak zakkak added this to the 23.1.7 milestone Jan 9, 2025
@zakkak zakkak changed the title [Backport] Changes from vm-23.1.5 upstream Graal tag [Backport] Changes from upstream Graal tag vm-23.1.5 Jan 9, 2025
@zakkak zakkak linked a pull request Jan 23, 2025 that will close this issue
@zakkak zakkak self-assigned this Feb 12, 2025
@zakkak
Copy link
Contributor Author

zakkak commented Feb 12, 2025

As agreed in #41 (comment)

This backport will be split in 8 smaller PRs (each depending on the previous one)

Note

I won't be cherry-picking the merge commits but the cherry-pick commits in those upstream merges.
To achieve I will perform the following process

  1. List the commits from the merge branch:
    ❯ MERGE_SHA=10a97c7114e; git log ${MERGE_SHA}^1..${MERGE_SHA}^2 
    commit e89cb070099f9c03ecf2192471aa5b2f53cc0d48
    Author: jovanstevanovic <[email protected]>
    Date:   Wed Mar 6 13:59:35 2024 +0100
    
        Strip debug sections unconditionally.
        
        (cherry picked from commit a7b524e4077ea93f414a049876f587ab810cfcd5)
    
    commit 0bd77c6029f3d11220e8f5d14208743c73b0fa36
    Author: jovanstevanovic <[email protected]>
    Date:   Mon Oct 30 11:11:25 2023 +0100
    
        Update -g to include all informaton for profiling on Linux.
        
        (cherry picked from commit e9e411ed2ab58a733c92854e1ef9523a0d975f84)
    
  2. Cherry pick the original commits
    git cherry-pick e89cb070099f9c03ecf2192471aa5b2f53cc0d48 0bd77c6029f3d11220e8f5d14208743c73b0fa36
    
  3. Resolve any potential conflicts.

The PRs should contain the following chnages:

1st PR

ac863aa12f3 [GR-53413] Backport to 23.1: Various CPUSampler fixes
ddbc71d9b95 [GR-53806] [GR-53809] Backport to 23.1: OutOfMemoryError-related fixes.
e26138f1c57 [GR-53472] Backport to 23.1: Make reference processing more robust, especially against OOME during tear-down.
d45906b5e1a [GR-53099] Backport to 23.1: Add epsilon to more floating-point probability comparisons
1a6fbc4c0f0 [GR-53651] Backport 23.1: E3 Benchmarking migration.
8b94868a601 [GR-52736] Backport to 23.1: Fix simplification of always-deopt FixedGuard.
eed5f79a666 [GR-52780] Backport to 23.1: FileSystemsTest#testSetAttribute() fails on JDK-23-linux.
919d1d4d69e [GR-52970] Backport to 23.1: Change CCharPointer from "char" to "signed char".
4330f8d5042 [GR-52496] Backport to 23.1: Use correct compare size in AMD64NormalizedUnsignedCompareOp
10a97c7114e [GR-52601] Backport to 23.1: Update -g to include all information for profiling. Fix the problem with objcopy strip command.
5fb1bcad879 [GR-53421] Update labsjdk to 23.1-b38

2nd PR

790e3c0616b [GR-52958] Backport to 23.1: Fix values reported in JFR event GCHeapSummary.
8c79034e194 [GR-54156] Disable LoggingTest#testDisableLoggersSingleContext in graavm-23.1.
5b6e90db549 [GR-53638] Backport to 23.1: remove getpwuid in favor of getpwuid_r
df72edaee97 [GR-53729] Backport to 23.1: Fix AArch64AtomicMove.
7322bdd121d [GR-53535] Backport to 23.1: JDWP method invocation fix.
f97bcb3141b [GR-52791] Backport to 23.1: Prevent hosted user directory leakages through ModuleReference.location URLs.
2418ecef437 [GR-53776] Backport to 23.1: Fix NPE in isRegisteredDeoptEntry.
1171118ed0d [GR-54086] Backport to 23.1: Change CCharPointer from "signed char" to "char".
079357dd205 [GR-53422] Update labsjdk to 23.1-b39
2ffea220e68 [GR-53096] Backport to 23.1: Remove OpaqueValueNodes at the end of low tier
bf33b4044c6 [GR-53601] Backport to 23.1: Wrong error message when polyglot implementation is missing.

3rd PR

d1ca7f237a8 [GR-53771] Backport to 23.1: Recompute Buffer.address field for array-based buffers in the image heap
90d367396db [GR-54211] Backport to 23.1: Replicate hosted module graph relations for unnamed modules
e6eca97985c [GR-53517] Backport to 23.1: Make graal osr test usable outside of inheritance.
a535be32edf [GR-54258] Backport to 23.1: Align stack pointer while in deoptStub.
f21c70883de [GR-54088] Backport to 23.1: Fix: DeltaBlue benchmark buffer leak.
d5e335a677f [GR-52470] Backport to 23.1: Fix NPE in JDWP when debugger asks for local variable table.
6316e1740f2 [GR-53501] Fix consistency issue in HeapImplMemoryMXBean.getHeapMemoryUsage().
31b860cf520 [GR-54372] Backport to 23.1: Don't log CPUSampler interrupt if the sampler is already closed.
fd71e2ba102 [GR-53305] Backport to 23.1: Cannot update closed speculation encoding.
d6cf8577063 [GR-54079] Backport to 23.1: NullPointerException: Cannot invoke "com.oracle.truffle.polyglot.InternalResourceRoots$Root.path()" because "this.owningRoot" is null.
6cccb8953ca [GR-45720] [GR-54283] Backport to 23.1: TRegex: full backport for OracleDB compabitility.

4th PR

b23ddf8903d [GR-52491] Backport to 23.1: Fix EVEX encoding of various instructions
b63eeb8dcd1 [GR-52922] Backport to 23.1: Mark installDeoptimizedFrame() as @Uninterruptible.
fa65d9b4710 [GR-53445] Backport to 23.1: Use concrete VirtualFrame return type to help static analysis.
38bd56d8f11 [GR-54735] Backport to 23.1: TRegex: add support for match-begin and match-end position assertions for compatibility with OracleDB flavor.
970bcf6d2f5 [GR-54147] Backport to 23.1: Use a non-cryptographic hash for IsolatedSpeculationReasonEncoding.
3bc52061f63 [GR-52748] [GR-52719] Backport to 23.1: Use an instance field instead of a static field.
088f5b264ad [GR-52985] Backport to 23.1: Partial support for physical memory usage and JFR tests for periodic native events.
d2b9bd2afe1 [GR-53519] [GR-54454] [GR-54453] [GR-54451] [GR-54455] [GR-54561] Backport to 23.1: Build espresso's runtime resources according the the labsjdk 21 type (ce/ee).
2fcbee5b106 [GR-54175] [GR-54711] Backport to 23.1: Loop infra: use correct bit size for overflow checks.
2d918094ec9 [GR-54312] Backport to 23.1: Fix NullPointerException in PrintMethodHistogram.
9dad1b98132 [GR-52459] Backport to 23.1: Fix single stepping in Espresso JDWP when stepping within not yet loaded code.

5th PR

ccc372b3a94 [GR-55494] Update labsjdk to 23.1-b43 : Integrate jdk-21.0.5+3
21e5c18fd95 [GR-55139] Backport to 23.1: Loop exit: all with exception nodes that are used as value nodes need begin nodes for schedule.
ac91f6434b0 [GR-55494] Integrate jdk-21.0.5+2
59aa440d437 [GR-55307] Add support for registering custom UnmanagedMemorySupport implementations.
0a776d810f9 [GR-54009] Update labsjdk to 23.1-b41
415dc7694f5 [GR-54971] Backport to 23.1: Don't treat yellow-zone code as VM-internal code.
fdebb922e1f [GR-53545] Backport to 23.1 : Fix stepping into intrinsified Java methods in JDWP.
72da523a98d [GR-52751] Backport to 23.1 : Report error if building static executable without musl libc
35e2e715703 [GR-52594] Backport to 23.1: Records cannot use Word types.
8b23f45eb9e [GR-54214] Backport to 23.1: Add ability to transform globs into regex
d3036cc00c8 [GR-54179] Backport to 23.1: Unsigned loops that need an overflow to terminate must not be counted.

6th PR

8b5afbf1626 [GR-56806] Backport to 23.1: [GR-55245] Prevent that large array allocations in VM-internal code trigger OutOfMemoryErrors.
4c0ac358f80 [GR-56214] Backport to 23.1: Enforce runtime module layer ordering
38c04722c17 [GR-56358] Backport to 23.1: Trace Polyglot Source Cache
edb5c6ca7de [GR-54982] Backport to 23.1: Fix WebAssembly caching.
6619bcf3c2f [GR-55494] Update labsjdk to 23.1-b45
21f40e3208a [GR-56676] Backport to 23.1: JS interpreter can cause TRegex to fail with IndexOutOfBoundsException.
5bb2455d6fe [GR-56354] Backport to 23.1: Make polyglot API not swallow thread interrupts.
9fe2a884076 [GR-56331] Backport to 23.1: Enhance truffle compilation logs.
b7343e7903a [GR-55494] Update labsjdk to 23.1-b44
9f48732ff26 [GR-54961] Backport to 23.1: Support Intel oneAPI DPC++/C++ Compiler (ICX) compiler in toolchain detection of Native Image
1bc0210a13e [GR-55114] Backport to 23.1: TRegex: OracleDBFlavor: missing recursive backref guard on group escapes.

7th PR

357cdb6a4b3 [GR-56816] [GR-56859] [GR-56863] [GR-56861] [GR-56855] [GR-56883] Backport to 23.1: Improve serial GC heap verification and other GC-related changes.
bd8874b714e [GR-57651] Backport to 23.1: Reduce logging overhead in debug info generator.
32f7bc7c123 [GR-57559] Backport to 23.1: Fix StrengthenGraphs for LoadFieldNode when analysis is context sensitive.
4e7287c6d86 [GR-55494] Update labsjdk to 23.1-b46
0ec2dd6718f [GR-54582] [GR-56351] Backport to 23.1: Various JNI-related bugfixes.
1a7c8b78569 [GR-54545] Backport 23.1: Timeout of gate-vm-ce-truffle-unchained-labsjdk-latest-linux-amd64
c33c03a57c4 [GR-54636] Backport to 23.1: Ensure NoClassDefFoundError during reflective call.
59aee85bcaf [GR-55006] Backport to 23.1: Check if modules contain packages before attempting to open/export
dd9d993136e [GR-57341] Backport 23.1: Fix deoptimization into an exception handler.
7b711b6aa61 [GR-55186] Backport to 23.1: TruffleStrings: guard all native pointer accesses with a reachability fence on its containing object.
4fac1ba3954 [GR-55713] Backport to 23.1: Fixed a crash in InheritedChannel.inetPeerAddress0().

8th PR

d6cfe5eba7e [GR-55494] Update labsjdk to 23.1-b48
18085cd131a [GR-56101] Backport reachability-metadata.json parser
0c89e49f821 [GR-53665] SubprocessTest improvements
44314120215 [GR-57338] Backport to 23.1: improve detection of unused @Fold methods.
b1786958a77 [GR-55494] Update labsjdk to 23.1-b47
1dca6aabd22 [GR-57704] Backport to 23.1: Reset Provider.Service.constructorCache field.
c7fa1cab3df [GR-57743] Backport to 23.1: Eagerly initialize caches in ValueConversions.
12021023316 [GR-57860] Backport 23.1: Make inlining robust to non direct and indirect call nodes.
2c8ac4ef7d8 [CONFLICTED][GR-57415] Backport to 23.1: Update JavaMonitor to jdk-24+11.
b31481acca7 [GR-57657] Backport to 23.1: Fix Addr part alignment in Truffle compilation logs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Backport or backport request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant