There are various non-transient fields containing MethdHandles or Switchpoints that break serialization for persistent code caching. These fields are usually not initialized when storing persistent script classes. They should be defined as transient. Also, the new Parser.ParseState class is stored in a RecompilableScriptFunctionData field and should be serializable.
|