Skip to content

Commit

Permalink
Fix one possible (reproducible!) startup crash in IRJit. May help #8848
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jul 24, 2016
1 parent a1e815e commit eb72a74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Core/MIPS/IR/IRJit.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ class IRBlock {

class IRBlockCache {
public:
IRBlockCache() : size_(0) {}
void Clear();
void InvalidateICache(u32 address, u32 length);
int GetNumBlocks() const { return (int)blocks_.size(); }
Expand All @@ -141,7 +142,7 @@ class IRBlockCache {
void RestoreSavedEmuHackOps(std::vector<u32> saved);

private:
int size_;
int size_; // Hm, is this a cache for speed in debug mode, or what?

This comment has been minimized.

Copy link
@unknownbrackets

unknownbrackets Jul 24, 2016

Collaborator

Good catch... huh. Seems like it is a cache: a33f8b6#diff-d551f60c9f48054d1356890b5c4dea7bR87

I guess GetNumBlocks should return size_ for consistency, nitpicking here...

-[Unknown]

std::vector<IRBlock> blocks_;
};

Expand Down

0 comments on commit eb72a74

Please sign in to comment.