Mercurial > hg > truffle
comparison src/share/vm/graal/graalCodeInstaller.cpp @ 14729:8db730993642
check that data patches are of the expected type
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 25 Mar 2014 13:55:55 +0100 |
parents | 2ec76bd5f309 |
children | db4254246f9a |
comparison
equal
deleted
inserted
replaced
14728:d09194f75dd4 | 14729:8db730993642 |
---|---|
511 int oop_index = _oop_recorder->find_index(value); | 511 int oop_index = _oop_recorder->find_index(value); |
512 | 512 |
513 address dest = _constants->start() + CompilationResult_Site::pcOffset(patch); | 513 address dest = _constants->start() + CompilationResult_Site::pcOffset(patch); |
514 assert(!OopData::compressed(data), err_msg("unexpected compressed oop in data section")); | 514 assert(!OopData::compressed(data), err_msg("unexpected compressed oop in data section")); |
515 _constants->relocate(dest, oop_Relocation::spec(oop_index)); | 515 _constants->relocate(dest, oop_Relocation::spec(oop_index)); |
516 } else { | |
517 ShouldNotReachHere(); | |
516 } | 518 } |
517 } | 519 } |
518 | 520 |
519 for (int i = 0; i < _sites->length(); i++) { | 521 for (int i = 0; i < _sites->length(); i++) { |
520 oop site = ((objArrayOop) (_sites))->obj_at(i); | 522 oop site = ((objArrayOop) (_sites))->obj_at(i); |