Skip to content

Golden gate updates - #13

Open
hoolrory wants to merge 13 commits into
backtracefrom
GoldenGateUpdates
Open

Golden gate updates#13
hoolrory wants to merge 13 commits into
backtracefrom
GoldenGateUpdates

Conversation

@hoolrory

Copy link
Copy Markdown

Update deployment target to 14.0

the range of supported deployment target versions is 12.0 to 27.0.x

Replace deprecated classes/method uses

hoolrory added 9 commits June 10, 2026 14:12
> PLCrashAsyncLinkedList.hpp:155:5: 'OSSpinLock' is deprecated: first deprecated in macOS 10.12 - Use os_unfair_lock() from <os/lock.h> instead
PLCrashAsyncLinkedList.hpp:214:9: 'OSMemoryBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_thread_fence() from <atomic> instead
PLCrashReporter.m:376:10: 'OSAtomicCompareAndSwap32' is deprecated: first deprecated in macOS 10.12 - Use atomic_compare_exchange_strong_explicit(memory_order_relaxed) from <stdatomic.h> instead
PLCrashMachExceptionServer.m:808:5 'OSAtomicCompareAndSwap32Barrier' is deprecated: first deprecated in macOS 10.12 - Use atomic_compare_exchange_strong() from <stdatomic.h> instead
PLCrashLogWriter.m:446:21 'gestaltSystemVersionMajor' is deprecated: first deprecated in macOS 10.8 - Use NSProcessInfo's operatingSystemVersion property instead.
PLCrashAsyncImageList.cpp:209:5: 'OSAtomicCompareAndSwapPtrBarrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_compare_exchange_strong() from <atomic> instead

PLCrashAsyncLinkedList.hpp:414:9: 'OSAtomicIncrement32Barrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_fetch_add() from <atomic> instead

PLCrashAsyncLinkedList.hpp:417:9: 'OSAtomicDecrement32Barrier' is deprecated: first deprecated in macOS 10.12 - Use std::atomic_fetch_sub() from <atomic> instead
@hoolrory
hoolrory marked this pull request as ready for review July 1, 2026 13:08
@hoolrory
hoolrory requested a review from Copilot July 1, 2026 13:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates PLCrashReporter’s Apple-platform compatibility by raising the macOS deployment target and replacing deprecated atomic/OS-version APIs with modern equivalents.

Changes:

  • Replace deprecated OSAtomic* / OSMemoryBarrier usage with C11 atomics (<stdatomic.h>) and C++ atomics where applicable.
  • Replace deprecated Gestalt OS version probing with NSProcessInfo.operatingSystemVersion.
  • Update Xcode project settings (including MACOSX_DEPLOYMENT_TARGET = 14.0) and remove some project file entries.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
Source/PLCrashReporter.m Replaces OSAtomic CAS in uncaught exception handler with C11 atomics.
Source/PLCrashReport.m Minor formatting/indentation adjustment.
Source/PLCrashMachExceptionServer.m Migrates stop-flag synchronization from OSAtomic to C11 atomics.
Source/PLCrashLogWriter.m Replaces Gestalt OS version retrieval and OS memory barriers with modern APIs/atomics.
Source/PLCrashAsyncLinkedList.hpp Replaces OSSpinLock/refcount OSAtomic ops with os_unfair_lock + std::atomic.
Source/PLCrashAsyncImageList.cpp Replaces OSAtomic pointer CAS with a C++ atomic CAS approach.
CrashReporter.xcodeproj/project.pbxproj Bumps macOS deployment target and adjusts target membership entries.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Source/PLCrashAsyncLinkedList.hpp
Comment thread Source/PLCrashAsyncLinkedList.hpp
Comment thread Source/PLCrashAsyncImageList.cpp Outdated
Comment on lines 5724 to 5726
HEADER_SEARCH_PATHS = "\"$(SRCROOT)/Dependencies/protobuf-c\"";
MACOSX_DEPLOYMENT_TARGET = 10.7;
MACOSX_DEPLOYMENT_TARGET = 14.0;
ONLY_ACTIVE_ARCH = NO;
Comment on lines 5776 to 5778
HEADER_SEARCH_PATHS = "\"$(SRCROOT)/Dependencies/protobuf-c\"";
MACOSX_DEPLOYMENT_TARGET = 10.7;
MACOSX_DEPLOYMENT_TARGET = 14.0;
OTHER_CFLAGS = (
Comment on lines 3904 to 3908
05BEC42817BD4F290082CBFB /* PLCrashAsyncMachExceptionInfo.c in Sources */,
05BEC43C17BF1CB10082CBFB /* PLCrashReporterConfig.m in Sources */,
05A5E28A17C04188008A75E5 /* PLCrashAsyncLinkedList.cpp in Sources */,
1F14AC832BACB4330037FCD3 /* CPPCrashHelper.mm in Sources */,
05B929EE17C9336600B051E3 /* PLCrashUncaughtExceptionHandler.m in Sources */,
0513E23A17D15ED400727919 /* PLCrashReportMachExceptionInfo.m in Sources */,
hoolrory and others added 4 commits July 13, 2026 13:14
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants