8179040: Avoid Ticks::now calls when EventClassLoad is not enabled

Co-authored-by: Markus Gronlund <markus.gronlund@oracle.com>
Reviewed-by: ehelin, mgronlun, dholmes, iklam
This commit is contained in:
Claes Redestad 2017-08-28 00:20:35 +02:00
parent 437d3f2c3b
commit 52f9c55e24
6 changed files with 30 additions and 73 deletions

View file

@ -1407,7 +1407,6 @@ ObjectMonitor* ObjectSynchronizer::inflate(Thread * Self,
assert(inf->header()->is_neutral(), "invariant");
assert(inf->object() == object, "invariant");
assert(ObjectSynchronizer::verify_objmon_isinpool(inf), "monitor is invalid");
event.cancel(); // let's not post an inflation event, unless we did the deed ourselves
return inf;
}