Skip to content

Commit

Permalink
8079797: assert(index >= 0 && index < _count) failed: check
Browse files Browse the repository at this point in the history
Reviewed-by: kvn
  • Loading branch information
Rickard Bäckman committed May 11, 2015
1 parent 005adce commit 3dc9461
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hotspot/src/share/vm/code/codeCache.cpp
Expand Up @@ -1374,7 +1374,7 @@ void CodeCache::print() {
ImmutableOopMapSet* set = cb->oop_maps();
if (set != NULL) {
number_of_oop_maps += set->count();
map_size += set->size();
map_size += set->nr_of_bytes();
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion hotspot/src/share/vm/code/nmethod.cpp
Expand Up @@ -2989,7 +2989,7 @@ void nmethod::print_code_comment_on(outputStream* st, int column, u_char* begin,
address base = code_begin();
ImmutableOopMapSet* oms = oop_maps();
if (oms != NULL) {
for (int i = 0, imax = oms->size(); i < imax; i++) {
for (int i = 0, imax = oms->count(); i < imax; i++) {
const ImmutableOopMapPair* pair = oms->pair_at(i);
const ImmutableOopMap* om = pair->get_from(oms);
address pc = base + pair->pc_offset();
Expand Down
2 changes: 1 addition & 1 deletion hotspot/src/share/vm/compiler/oopMap.hpp
Expand Up @@ -324,7 +324,7 @@ class ImmutableOopMapSet {
const ImmutableOopMapPair* pair_at(int index) const { assert(index >= 0 && index < _count, "check"); return &get_pairs()[index]; }

int count() const { return _count; }
int size() const { return _size; }
int nr_of_bytes() const { return _size; }

void print_on(outputStream* st) const;
void print() const { print_on(tty); }
Expand Down

0 comments on commit 3dc9461

Please sign in to comment.