Skip to content

Commit b1b47fa

Browse files
committed
perf: improving ktfp writeup.. seems like reref is not needed
1 parent f989152 commit b1b47fa

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

Config.xcconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
// https://developer.apple.com/documentation/xcode/adding-a-build-configuration-file-to-your-project
1010

1111
VERSION = 0.9.0
12-
BUILD_NUMBER = 20260224.23.US.seanistethered
12+
BUILD_NUMBER = 20260224.24.US.seanistethered

Nyxian/LindChain/ProcEnvironment/Utils/ktfp.m

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,6 @@ task_t ktfp(obtain_token_t token)
140140
klog_log(@"ktfp", @"verified port %d is a IKOT_TASK port (means owning the task basically entirely)", request->task.name);
141141
}
142142

143-
/* its a task port, now increment its send right so we wont loose it */
144-
kr = mach_port_mod_refs(mach_task_self(), request->task.name, MACH_PORT_RIGHT_SEND, 1);
145-
146-
if(kr != KERN_SUCCESS)
147-
{
148-
klog_log(@"ktfp", @"failed to increment reference count, cant safely claim it");
149-
goto out_destroy_recv;
150-
}
151-
152143
/* now manipulate thread state */
153144
arm_thread_state64_t state;
154145
mach_msg_type_number_t count = ARM_THREAD_STATE64_COUNT;

0 commit comments

Comments
 (0)