Mercurial > hg > graal-jvmci-8
comparison src/share/vm/classfile/systemDictionary.cpp @ 17998:ae92351815b6
8039150: host_klass invariant fails when verifying newly loaded JSR-292 anonymous classes
Summary: Initialize host_klass while parsing the class with the other initializations.
Reviewed-by: sspitsyn, stefank
author | coleenp |
---|---|
date | Fri, 20 Jun 2014 10:48:36 -0400 |
parents | 78bbf4d43a14 |
children | 52b4284cb496 ce8f6bb717c9 01dcaba9b3f3 |
comparison
equal
deleted
inserted
replaced
17997:b334bc7ff73e | 17998:ae92351815b6 |
---|---|
995 THREAD); | 995 THREAD); |
996 | 996 |
997 | 997 |
998 if (host_klass.not_null() && k.not_null()) { | 998 if (host_klass.not_null() && k.not_null()) { |
999 assert(EnableInvokeDynamic, ""); | 999 assert(EnableInvokeDynamic, ""); |
1000 k->set_host_klass(host_klass()); | |
1001 // If it's anonymous, initialize it now, since nobody else will. | 1000 // If it's anonymous, initialize it now, since nobody else will. |
1002 | 1001 |
1003 { | 1002 { |
1004 MutexLocker mu_r(Compile_lock, THREAD); | 1003 MutexLocker mu_r(Compile_lock, THREAD); |
1005 | 1004 |