RFR: 8304743: Compile_lock and SystemDictionary updates

Dean Long dlong at openjdk.org
Fri Mar 31 21:33:16 UTC 2023


On Fri, 31 Mar 2023 13:23:31 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

> The SystemDictionary is updated and read under the Compile_lock but this is unnecessary because the table is a concurrent hashtable, and the lock doesn't really synchronize any other compilation state.  The lock may have protected other state that Dependencies used in the past but has been removed.   See discussion in CR for more information.
> Tested with tier1-8.

Is there a guarantee that any klasses the compiler found in the hierarchy are actually in the dictionary by the time the compiled code gets to execute?  If not, then we could have something like this fail?
`Class.forName(this.getClass().getName());`

-------------

PR Comment: https://git.openjdk.org/jdk/pull/13270#issuecomment-1492632852


More information about the hotspot-dev mailing list