mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8136421: JEP 243: Java-Level JVM Compiler Interface
Reviewed-by: ihse, alanb, roland, coleenp, iveresov, kvn, kbarrett
This commit is contained in:
parent
f5b4bb46f5
commit
16526e000e
505 changed files with 50394 additions and 915 deletions
|
@ -59,7 +59,7 @@ ScopeValue* DebugInfoReadStream::read_object_value() {
|
|||
#ifdef ASSERT
|
||||
assert(_obj_pool != NULL, "object pool does not exist");
|
||||
for (int i = _obj_pool->length() - 1; i >= 0; i--) {
|
||||
assert(((ObjectValue*) _obj_pool->at(i))->id() != id, "should not be read twice");
|
||||
assert(_obj_pool->at(i)->as_ObjectValue()->id() != id, "should not be read twice");
|
||||
}
|
||||
#endif
|
||||
ObjectValue* result = new ObjectValue(id);
|
||||
|
@ -73,7 +73,7 @@ ScopeValue* DebugInfoReadStream::get_cached_object() {
|
|||
int id = read_int();
|
||||
assert(_obj_pool != NULL, "object pool does not exist");
|
||||
for (int i = _obj_pool->length() - 1; i >= 0; i--) {
|
||||
ObjectValue* ov = (ObjectValue*) _obj_pool->at(i);
|
||||
ObjectValue* ov = _obj_pool->at(i)->as_ObjectValue();
|
||||
if (ov->id() == id) {
|
||||
return ov;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue