[jdk17u-dev] RFR: 8283326: Implement SafeFetch statically

Sergey Nazarkin snazarki at openjdk.org
Fri Jul 7 10:24:53 UTC 2023


Hi! 
I'd like to backport this changeset to prevent a crash when AsyncProfiler is used on Mac M1. 

The backport is not clean:
1. RISCV is not part of jdk17
2. mallocTracker.cpp is not updated since 8281023 was not backported to jdk17
3. vmError_posix.cpp requires manual update due to  8289350 is missed at jdk19+
4. Need to add globals.hpp to fix builds without precompiled headers

There is follow up for this case: 
1. 8284997: arm32 build crashes since JDK-8283326
2. 8288719: [arm32] SafeFetch32 thumb interleaving causes random crashes

-------------

Commit messages:
 - Fix builds without precompiled headers
 - Backport bdf8a2a2050393e91800786f8d5a5d6805f936eb

Changes: https://git.openjdk.org/jdk17u-dev/pull/1557/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=1557&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8283326
  Stats: 1515 lines in 34 files changed: 918 ins; 521 del; 76 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/1557.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/1557/head:pull/1557

PR: https://git.openjdk.org/jdk17u-dev/pull/1557


More information about the jdk-updates-dev mailing list