Mercurial > hg > graal-jvmci-8
diff src/share/vm/graal/graalEnv.cpp @ 13086:096c224171c4
Merge with http://hg.openjdk.java.net/hsx/hsx25/hotspot/
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 20 Nov 2013 00:10:38 +0100 |
parents | f1a55428a8d7 |
children | 5a9afbf72714 |
line wrap: on
line diff
--- a/src/share/vm/graal/graalEnv.cpp Tue Nov 19 17:44:26 2013 +0100 +++ b/src/share/vm/graal/graalEnv.cpp Wed Nov 20 00:10:38 2013 +0100 @@ -172,8 +172,7 @@ { // We have to lock the cpool to keep the oop from being resolved // while we are accessing it. - oop cplock = cpool->lock(); - ObjectLocker ol(cplock, THREAD, cplock != NULL); + MonitorLockerEx ml(cpool->lock()); constantTag tag = cpool->tag_at(index); if (tag.is_klass()) { @@ -503,16 +502,6 @@ // Free codeBlobs //code_buffer->free_blob(); - // stress test 6243940 by immediately making the method - // non-entrant behind the system's back. This has serious - // side effects on the code cache and is not meant for - // general stress testing - if (nm != NULL && StressNonEntrant) { - MutexLockerEx pl(Patching_lock, Mutex::_no_safepoint_check_flag); - NativeJump::patch_verified_entry(nm->entry_point(), nm->verified_entry_point(), - SharedRuntime::get_handle_wrong_method_stub()); - } - if (nm == NULL) { // The CodeCache is full. Print out warning and disable compilation. {