mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-17 01:24:33 +02:00
8043125: compiler/types/correctness/CorrectnessTest.java: assert(layout->tag() == DataLayout::speculative_trap_data_tag) failed: wrong type
Reviewed-by: kvn
This commit is contained in:
parent
e5a126fe00
commit
e429e497ce
1 changed files with 2 additions and 12 deletions
|
@ -509,16 +509,6 @@ class AlwaysFalseClosure : public BoolObjectClosure {
|
||||||
|
|
||||||
static AlwaysFalseClosure always_false;
|
static AlwaysFalseClosure always_false;
|
||||||
|
|
||||||
class VM_WhiteBoxCleanMethodData : public VM_WhiteBoxOperation {
|
|
||||||
public:
|
|
||||||
VM_WhiteBoxCleanMethodData(MethodData* mdo) : _mdo(mdo) { }
|
|
||||||
void doit() {
|
|
||||||
_mdo->clean_method_data(&always_false);
|
|
||||||
}
|
|
||||||
private:
|
|
||||||
MethodData* _mdo;
|
|
||||||
};
|
|
||||||
|
|
||||||
WB_ENTRY(void, WB_ClearMethodState(JNIEnv* env, jobject o, jobject method))
|
WB_ENTRY(void, WB_ClearMethodState(JNIEnv* env, jobject o, jobject method))
|
||||||
jmethodID jmid = reflected_method_to_jmid(thread, env, method);
|
jmethodID jmid = reflected_method_to_jmid(thread, env, method);
|
||||||
CHECK_JNI_EXCEPTION(env);
|
CHECK_JNI_EXCEPTION(env);
|
||||||
|
@ -534,8 +524,8 @@ WB_ENTRY(void, WB_ClearMethodState(JNIEnv* env, jobject o, jobject method))
|
||||||
for (int i = 0; i < arg_count; i++) {
|
for (int i = 0; i < arg_count; i++) {
|
||||||
mdo->set_arg_modified(i, 0);
|
mdo->set_arg_modified(i, 0);
|
||||||
}
|
}
|
||||||
VM_WhiteBoxCleanMethodData op(mdo);
|
MutexLockerEx mu(mdo->extra_data_lock());
|
||||||
VMThread::execute(&op);
|
mdo->clean_method_data(&always_false);
|
||||||
}
|
}
|
||||||
|
|
||||||
mh->clear_not_c1_compilable();
|
mh->clear_not_c1_compilable();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue