Skip to content

Commit

Permalink
Minor cleanup, add a speculative comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed May 4, 2023
1 parent c085990 commit 4e732af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Core/HLE/sceKernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -444,10 +444,10 @@ class KernelObjectPool {
u32 Destroy(SceUID handle) {
u32 error;
if (Get<T>(handle, error)) {
occupied[handle-handleOffset] = false;
delete pool[handle-handleOffset];
// Why weren't we zeroing before?
pool[handle-handleOffset] = nullptr;
int index = handle - handleOffset;
occupied[index] = false;
delete pool[index];
pool[index] = nullptr;
}
return error;
};
Expand Down
2 changes: 2 additions & 0 deletions Core/MIPS/JitCommon/JitCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ namespace MIPSComp {
std::recursive_mutex jitLock;

void JitAt() {
// TODO: We could probably check for a bad pc here, and fire an exception. Could spare us from some crashes.
// Although, we just tried to load from this address to check for a JIT block, and if we're here, that succeeded..
jit->Compile(currentMIPS->pc);
}

Expand Down

0 comments on commit 4e732af

Please sign in to comment.