Skip to content

Commit 26c1a18

Browse files
authored
Fix the bound check is_in() (#39)
1 parent d3b91bb commit 26c1a18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openjdk/mmtkHeap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ bool MMTkHeap::is_in(const void* p) const {
163163
//return cp >= committed_low_addr() && cp < committed_high_addr();
164164

165165
//guarantee(false, "is in not supported");
166-
return p > (void*) _start && p < (void*) _end;
166+
return p >= (void*) _start && p < (void*) _end;
167167
}
168168

169169
bool MMTkHeap::is_in_reserved(const void* p) const {

0 commit comments

Comments
 (0)